Spawner explosion drops will now respect the spawner enabled setting.

This commit is contained in:
Brianna 2019-08-02 07:01:51 -04:00
parent fcfce9aa19
commit 237117dd1f

View File

@ -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<>();