We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10bf45c commit a42e08dCopy full SHA for a42e08d
Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntityEventListener.java
@@ -401,7 +401,13 @@ public void onPeskyMobsChangeTheWorldLikeWTFEvent(EntityChangeBlockEvent event)
401
}
402
403
Plot plot = area.getOwnedPlot(location);
404
- if (plot != null && !plot.getFlag(EntityChangeBlockFlag.class)) {
+ if (plot == null) {
405
+ if (PlotFlagUtil.isAreaRoadFlagsAndFlagEquals(area, EntityChangeBlockFlag.class, false)) {
406
+ event.setCancelled(true);
407
+ }
408
+ return;
409
410
+ if (!plot.getFlag(EntityChangeBlockFlag.class)) {
411
plot.debug(e.getType() + " could not change block because entity-change-block = false");
412
event.setCancelled(true);
413
0 commit comments