From 3c75b170f029dcec926486de0cef9c98feb52ac1 Mon Sep 17 00:00:00 2001 From: Bernhard Date: Fri, 10 Jun 2022 01:27:39 +0200 Subject: [PATCH] fix: mob cap counting for each connected plot individually (#3643) cap meta is now handled in the base plot --- .../com/plotsquared/bukkit/listener/EntityEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntityEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntityEventListener.java index bd4c485f4..b8a052bc5 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntityEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntityEventListener.java @@ -208,7 +208,7 @@ public class EntityEventListener implements Listener { } return; } - if (BukkitEntityUtil.checkEntity(entity, plot)) { + if (BukkitEntityUtil.checkEntity(entity, plot.getBasePlot(false))) { event.setCancelled(true); } }