mirror of
https://github.com/songoda/UltimateStacker.git
synced 2025-02-12 09:21:21 +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)
|
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
|
||||||
public void onBlow(EntityExplodeEvent event) {
|
public void onBlow(EntityExplodeEvent event) {
|
||||||
|
if (!instance.spawnersEnabled()) return;
|
||||||
|
|
||||||
List<Block> destroyed = event.blockList();
|
List<Block> destroyed = event.blockList();
|
||||||
Iterator<Block> it = destroyed.iterator();
|
Iterator<Block> it = destroyed.iterator();
|
||||||
List<Block> toCancel = new ArrayList<>();
|
List<Block> toCancel = new ArrayList<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user