Allowed fluid flow parent claim to child claim.
This commit is contained in:
parent
7b280d2b22
commit
cd3e470cbc
|
|
@ -605,7 +605,11 @@ public class BlockEventHandler implements Listener
|
||||||
this.lastSpreadClaim = toClaim;
|
this.lastSpreadClaim = toClaim;
|
||||||
if(!toClaim.contains(spreadEvent.getBlock().getLocation(), false, true))
|
if(!toClaim.contains(spreadEvent.getBlock().getLocation(), false, true))
|
||||||
{
|
{
|
||||||
spreadEvent.setCancelled(true);
|
//exception: from parent into subdivision
|
||||||
|
if(toClaim.parent == null || !toClaim.parent.contains(spreadEvent.getBlock().getLocation(), false, false))
|
||||||
|
{
|
||||||
|
spreadEvent.setCancelled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user