mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-15 22:55:24 +01:00
Confirm block is instance of CreatureSpawner (For a specific DataPack)
This commit is contained in:
parent
c29bded94c
commit
6fe722a9d0
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user