Check for unaware.

This commit is contained in:
Brianna 2020-04-15 10:56:34 -04:00
parent a8b8202e61
commit 8b32521375

View File

@ -2,6 +2,7 @@ package com.songoda.ultimatestacker.entity;
import com.songoda.core.compatibility.CompatibleMaterial;
import com.songoda.core.compatibility.ServerVersion;
import com.songoda.core.utils.EntityUtils;
import com.songoda.lootables.loot.Drop;
import com.songoda.ultimatestacker.UltimateStacker;
import com.songoda.ultimatestacker.settings.Settings;
@ -157,6 +158,9 @@ public class EntityStack {
newEntity.setMetadata(entry.getKey(), entry.getValue());
}
if (!EntityUtils.isAware(killed))
EntityUtils.setUnaware(newEntity);
DropUtils.processStackedDrop(killed, drops, event);
EntityStack entityStack = stackManager.updateStack(killed, newEntity);