0.3h Add liquid flow protection toggle. Fix #1037

This commit is contained in:
BuildTools 2016-03-21 13:30:13 +01:00 committed by Olof Larsson
parent d2a22f5595
commit 67f5ff7edb
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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
// -------------------------------------------- //