mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
LiquidFlow true will override BlockPhysics false
This commit is contained in:
parent
894d673c90
commit
4a16f9c1a7
1 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue