From fd792fbba3495f0dd36a7eb87d80c85968d36e9c Mon Sep 17 00:00:00 2001 From: jd07159 <150450815+jd07159@users.noreply.github.com> Date: Sat, 7 Sep 2024 14:22:36 +0900 Subject: [PATCH] Add Protection TrialSpawner --- .../modules/listeners/SpawnersProtectionModule.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/purpurmc/purpurextras/modules/listeners/SpawnersProtectionModule.java b/src/main/java/org/purpurmc/purpurextras/modules/listeners/SpawnersProtectionModule.java index 11b5f85..c41c709 100644 --- a/src/main/java/org/purpurmc/purpurextras/modules/listeners/SpawnersProtectionModule.java +++ b/src/main/java/org/purpurmc/purpurextras/modules/listeners/SpawnersProtectionModule.java @@ -4,6 +4,7 @@ import net.kyori.adventure.text.minimessage.MiniMessage; import org.bukkit.block.BlockState; import org.bukkit.block.CreatureSpawner; +import org.bukkit.block.TrialSpawner; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; @@ -94,7 +95,7 @@ private void handleLootBlockDestruction(BlockBreakEvent event) { } private boolean isProtected(BlockState blockState) { - return blockState instanceof CreatureSpawner; + return blockState instanceof CreatureSpawner || blockState instanceof TrialSpawner; } }