Fixed stone generators
This commit is contained in:
parent
ca849074aa
commit
a20169c60f
@ -18,7 +18,7 @@ import com.redstoner.misc.Utils;
|
|||||||
import com.redstoner.modules.Module;
|
import com.redstoner.modules.Module;
|
||||||
|
|
||||||
@AutoRegisterListener
|
@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
|
public class Misc implements Module, Listener
|
||||||
{
|
{
|
||||||
private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"};
|
private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"};
|
||||||
@ -82,8 +82,18 @@ public class Misc implements Module, Listener
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void onLiquidFlow(BlockFromToEvent event)
|
public void onLiquidFlow(BlockFromToEvent event)
|
||||||
{
|
{
|
||||||
if (event.getToBlock().getType() != Material.AIR)
|
Material m = event.getToBlock().getType();
|
||||||
event.setCancelled(true);
|
switch (m)
|
||||||
|
{
|
||||||
|
case AIR:
|
||||||
|
case WATER:
|
||||||
|
case STATIONARY_WATER:
|
||||||
|
case LAVA:
|
||||||
|
case STATIONARY_LAVA:
|
||||||
|
return;
|
||||||
|
default:
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Command(hook = "tempadddef")
|
@Command(hook = "tempadddef")
|
||||||
|
Reference in New Issue
Block a user