LiquidFlow true will override BlockPhysics false

This commit is contained in:
dordsor21 2020-04-30 10:59:43 +01:00
parent 894d673c90
commit 4a16f9c1a7

View file

@ -1386,11 +1386,15 @@ public class PlayerEvents extends PlotListener implements Listener {
} }
Plot plot = area.getOwnedPlot(tLocation); Plot plot = area.getOwnedPlot(tLocation);
if (plot != null) { if (plot != null) {
if (plot.getFlag(DisablePhysicsFlag.class)) { if (!area.contains(fLocation.getX(), fLocation.getZ()) || !Objects
.equals(plot, area.getOwnedPlot(fLocation))) {
event.setCancelled(true); event.setCancelled(true);
return; return;
} else if (!area.contains(fLocation.getX(), fLocation.getZ()) || !Objects }
.equals(plot, area.getOwnedPlot(fLocation))) { if (plot.getFlag(LiquidFlowFlag.class) && event.getBlock().isLiquid()) {
return;
}
if (plot.getFlag(DisablePhysicsFlag.class)) {
event.setCancelled(true); event.setCancelled(true);
return; return;
} }