0.3h Add liquid flow protection toggle. Fix #1037
This commit is contained in:
parent
d2a22f5595
commit
67f5ff7edb
@ -1536,6 +1536,8 @@ public class EngineMain extends Engine
|
|||||||
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||||
public void blockLiquidFlow(BlockFromToEvent event)
|
public void blockLiquidFlow(BlockFromToEvent event)
|
||||||
{
|
{
|
||||||
|
if ( ! MConf.get().protectionLiquidFlowEnabled) return;
|
||||||
|
|
||||||
// Prepare fields
|
// Prepare fields
|
||||||
Block fromBlock = event.getBlock();
|
Block fromBlock = event.getBlock();
|
||||||
int fromCX = fromBlock.getX() >> 4;
|
int fromCX = fromBlock.getX() >> 4;
|
||||||
|
@ -235,6 +235,12 @@ public class MConf extends Entity<MConf>
|
|||||||
// 0 means there isn't.
|
// 0 means there isn't.
|
||||||
public int claimedLandsMax = 0;
|
public int claimedLandsMax = 0;
|
||||||
|
|
||||||
|
// -------------------------------------------- //
|
||||||
|
// PROTECTION
|
||||||
|
// -------------------------------------------- //
|
||||||
|
|
||||||
|
public boolean protectionLiquidFlowEnabled = true;
|
||||||
|
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
// HOMES
|
// HOMES
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
Loading…
Reference in New Issue
Block a user