More task scheduling. Fixes #199
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user