hologram fix.

This commit is contained in:
Brianna O'Keefe 2019-01-10 16:06:05 -05:00
parent 66813c9a59
commit 26a75b52f3

View File

@ -71,6 +71,7 @@ public class BlockListeners implements Listener {
}
stack.setAmount(stack.getAmount() + itemAmount);
if (instance.getHologramHandler() != null)
instance.getHologramHandler().updateHologram(stack);
Methods.takeItem(player, itemAmount);
}
@ -125,10 +126,12 @@ public class BlockListeners implements Listener {
} else {
if (stack.getAmount() <= 1) {
event.setCancelled(false);
if (instance.getHologramHandler() != null)
instance.getHologramHandler().despawn(block);
instance.getSpawnerStackManager().removeSpawner(block.getLocation());
} else {
stack.setAmount(stack.getAmount() - 1);
if (instance.getHologramHandler() != null)
instance.getHologramHandler().updateHologram(stack);
}
}