Confirm block is instance of CreatureSpawner (For a specific DataPack)

This commit is contained in:
Brianna 2020-02-01 10:12:18 -05:00
parent c29bded94c
commit 6fe722a9d0

View File

@ -110,6 +110,7 @@ public class BlockListeners implements Listener {
if (!event.isCancelled()) {
if (block.getType() != CompatibleMaterial.SPAWNER.getMaterial()
|| !(block.getState() instanceof CreatureSpawner) // Needed for a DataPack
|| !plugin.spawnersEnabled())
return;