mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-15 22:55:24 +01:00
Check for unaware.
This commit is contained in:
parent
a8b8202e61
commit
8b32521375
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user