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; } }