Fix for disabled holograms.

This commit is contained in:
Brianna 2019-04-01 17:13:12 -04:00
parent 96dfbeea77
commit d8e166fb94

View File

@ -49,6 +49,8 @@ public class EntityListeners implements Listener {
ItemStack item = Methods.getSpawnerItem(((CreatureSpawner) block.getState()).getSpawnedType(), stack.getAmount());
spawnerLocation.getWorld().dropItemNaturally(spawnerLocation.clone().add(.5, 0, .5), item);
if (instance.getHologram() == null) return;
instance.getHologram().remove(stack);
}
}