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