mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-31 21:07:47 +01:00
Fix for disabled holograms.
This commit is contained in:
parent
96dfbeea77
commit
d8e166fb94
@ -49,6 +49,8 @@ public class EntityListeners implements Listener {
|
|||||||
ItemStack item = Methods.getSpawnerItem(((CreatureSpawner) block.getState()).getSpawnedType(), stack.getAmount());
|
ItemStack item = Methods.getSpawnerItem(((CreatureSpawner) block.getState()).getSpawnedType(), stack.getAmount());
|
||||||
spawnerLocation.getWorld().dropItemNaturally(spawnerLocation.clone().add(.5, 0, .5), item);
|
spawnerLocation.getWorld().dropItemNaturally(spawnerLocation.clone().add(.5, 0, .5), item);
|
||||||
|
|
||||||
|
if (instance.getHologram() == null) return;
|
||||||
|
|
||||||
instance.getHologram().remove(stack);
|
instance.getHologram().remove(stack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user