From 4433892431d1904f5cced1159d83210ecc04120a Mon Sep 17 00:00:00 2001 From: Bernhard Date: Mon, 16 May 2022 14:20:03 +0200 Subject: [PATCH] fix: Block Endermites from spawning if mob spawning is disabled (#3623) --- .../com/plotsquared/bukkit/listener/EntityEventListener.java | 1 + .../main/java/com/plotsquared/bukkit/listener/PaperListener.java | 1 + 2 files changed, 2 insertions(+) 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 8c10850e7..bd4c485f4 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntityEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/EntityEventListener.java @@ -168,6 +168,7 @@ public class EntityEventListener implements Listener { case "RAID": case "SHEARED": case "SILVERFISH_BLOCK": + case "ENDER_PEARL": case "TRAP": case "VILLAGE_DEFENSE": case "VILLAGE_INVASION": diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PaperListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PaperListener.java index 079d04fe3..27e44d57f 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PaperListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PaperListener.java @@ -196,6 +196,7 @@ public class PaperListener implements Listener { case "RAID": case "SHEARED": case "SILVERFISH_BLOCK": + case "ENDER_PEARL": case "TRAP": case "VILLAGE_DEFENSE": case "VILLAGE_INVASION":