forked from SteamWar/SteamWar
Hotfix PistonCalculator
This commit is contained in:
@@ -153,8 +153,17 @@ public class PistonCalculator implements Listener {
|
||||
brokenBlocks.clear();
|
||||
immovableBlocks.clear();
|
||||
|
||||
if (piston.isEmpty()) {
|
||||
Bukkit.getScheduler().runTaskLater(BauSystem.getInstance(), () -> {
|
||||
server.close();
|
||||
pistOrders.remove(piston.getLocation());
|
||||
}, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
Piston pistonData = (Piston) piston.getBlockData();
|
||||
if (piston.getType() == Material.PISTON && pistonData.isExtended()) {
|
||||
visualize();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user