More task scheduling. Fixes #199

This commit is contained in:
garbagemule
2013-07-30 21:57:36 +02:00
parent 7d27e52d7c
commit 9230f823fb
@@ -833,9 +833,6 @@ public class ArenaImpl implements Arena
@Override
public void storeContainerContents()
{
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,
new Runnable() {
public void run() {
for (Location loc : region.getContainers()) {
BlockState state = world.getBlockAt(loc).getState();
if (state instanceof InventoryHolder) {
@@ -843,21 +840,14 @@ public class ArenaImpl implements Arena
}
}
}
});
}
@Override
public void restoreContainerContents()
{
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin,
new Runnable() {
public void run() {
for (Repairable r : containables) {
r.repair();
}
}
});
}
@Override
public void movePlayerToLobby(Player p)