mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-26 18:37:43 +01:00
hologram fix.
This commit is contained in:
parent
66813c9a59
commit
26a75b52f3
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user