Skip to content

Commit

Permalink
Add Protection TrialSpawner (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd07159 authored Oct 5, 2024
1 parent d9fe5bf commit 5c5ca95
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

}

0 comments on commit 5c5ca95

Please sign in to comment.