More task scheduling. Fixes #199
This commit is contained in:
@@ -833,9 +833,6 @@ public class ArenaImpl implements Arena
|
|||||||
@Override
|
@Override
|
||||||
public void storeContainerContents()
|
public void storeContainerContents()
|
||||||
{
|
{
|
||||||
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,
|
|
||||||
new Runnable() {
|
|
||||||
public void run() {
|
|
||||||
for (Location loc : region.getContainers()) {
|
for (Location loc : region.getContainers()) {
|
||||||
BlockState state = world.getBlockAt(loc).getState();
|
BlockState state = world.getBlockAt(loc).getState();
|
||||||
if (state instanceof InventoryHolder) {
|
if (state instanceof InventoryHolder) {
|
||||||
@@ -843,21 +840,14 @@ public class ArenaImpl implements Arena
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void restoreContainerContents()
|
public void restoreContainerContents()
|
||||||
{
|
{
|
||||||
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,
|
|
||||||
new Runnable() {
|
|
||||||
public void run() {
|
|
||||||
for (Repairable r : containables) {
|
for (Repairable r : containables) {
|
||||||
r.repair();
|
r.repair();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void movePlayerToLobby(Player p)
|
public void movePlayerToLobby(Player p)
|
||||||
|
|||||||
Reference in New Issue
Block a user