0.3h Add liquid flow protection toggle. Fix #1037

This commit is contained in:
BuildTools authored and Olof Larsson committed 2016-03-21 15:57:52 +01:00
1 parent d2a22f5595
commit 67f5ff7edb
2 files changed
+8

No files matched your search

@@ -1536,6 +1536,8 @@ public class EngineMain extends Engine
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void blockLiquidFlow(BlockFromToEvent event)
{
if ( ! MConf.get().protectionLiquidFlowEnabled) return;
// Prepare fields
Block fromBlock = event.getBlock();
int fromCX = fromBlock.getX() >> 4;
@@ -235,6 +235,12 @@ public class MConf extends Entity<MConf>
// 0 means there isn't.
public int claimedLandsMax = 0;
// -------------------------------------------- //
// PROTECTION
// -------------------------------------------- //
public boolean protectionLiquidFlowEnabled = true;
// -------------------------------------------- //
// HOMES
// -------------------------------------------- //