From a20169c60fac04d2c0ccac47bd9cc6eef93e0e1e Mon Sep 17 00:00:00 2001 From: Pepich Date: Thu, 2 Mar 2017 20:31:47 +0100 Subject: [PATCH] Fixed stone generators --- src/com/redstoner/modules/misc/Misc.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/com/redstoner/modules/misc/Misc.java b/src/com/redstoner/modules/misc/Misc.java index 6a982e6..3b84848 100644 --- a/src/com/redstoner/modules/misc/Misc.java +++ b/src/com/redstoner/modules/misc/Misc.java @@ -18,7 +18,7 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 0, compatible = 2) +@Version(major = 2, minor = 0, revision = 1, compatible = 2) public class Misc implements Module, Listener { private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"}; @@ -82,8 +82,18 @@ public class Misc implements Module, Listener @EventHandler public void onLiquidFlow(BlockFromToEvent event) { - if (event.getToBlock().getType() != Material.AIR) - event.setCancelled(true); + Material m = event.getToBlock().getType(); + switch (m) + { + case AIR: + case WATER: + case STATIONARY_WATER: + case LAVA: + case STATIONARY_LAVA: + return; + default: + event.setCancelled(true); + } } @Command(hook = "tempadddef")