mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-07 15:01:29 +01:00
Spawner explosion drops will now respect the spawner enabled setting.
This commit is contained in:
parent
fcfce9aa19
commit
237117dd1f
@ -74,6 +74,8 @@ public class EntityListeners implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||
public void onBlow(EntityExplodeEvent event) {
|
||||
if (!instance.spawnersEnabled()) return;
|
||||
|
||||
List<Block> destroyed = event.blockList();
|
||||
Iterator<Block> it = destroyed.iterator();
|
||||
List<Block> toCancel = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user