From 2f5ce6715430c08d43434767ac53214a66819bb6 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 29 Sep 2020 15:55:08 +0100 Subject: [PATCH] add back setShouldAbortSpawn --- .../java/com/plotsquared/bukkit/listener/PaperListener.java | 3 +++ 1 file changed, 3 insertions(+) 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 9b676c7b4..0413802e7 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PaperListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PaperListener.java @@ -226,6 +226,7 @@ public class PaperListener implements Listener { switch (type) { case DROPPED_ITEM: if (Settings.Enabled_Components.KILL_ROAD_ITEMS) { + event.setShouldAbortSpawn(true); event.setCancelled(true); return; } @@ -233,10 +234,12 @@ public class PaperListener implements Listener { return; } if (type.isAlive()) { + event.setShouldAbortSpawn(true); event.setCancelled(true); } } if (!area.isMiscSpawnUnowned() && !type.isAlive()) { + event.setShouldAbortSpawn(true); event.setCancelled(true); } return;