From ef54775ca7ba19f54d10e62a4833941a49527c1e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 7 May 2018 10:15:02 +1000 Subject: [PATCH] wtf, this has its own spawn reason, thanks spigot Fixes #1803 --- .../java/com/plotsquared/bukkit/listeners/PlayerEvents.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index 9bd70f607..3a85b7687 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -1544,6 +1544,7 @@ public class PlayerEvents extends PlotListener implements Listener { switch (reason) { case SPAWNER_EGG: case DISPENSE_EGG: + case OCELOT_BABY: if (!area.SPAWN_EGGS) { event.setCancelled(true); return; @@ -1748,7 +1749,7 @@ public class PlayerEvents extends PlotListener implements Listener { case PAINTING: case ARMOR_STAND: return checkEntity(plot, Flags.ENTITY_CAP, Flags.MISC_CAP); - // misc + // misc case MINECART: case MINECART_CHEST: case MINECART_COMMAND: