fix aiob when opening chisel in some slots (#51)

This commit is contained in:
Lyft authored and GitHub committed 2024-08-01 07:41:25 +07:00
1 parent 568e405e25
commit 0cabe335dd
3 files changed
+4 -4

No files matched your search

@@ -66,7 +66,7 @@ public class SlotChiselSelection extends Slot {
.onChisel(player.worldObj, container.chisel, General.getVariation(crafted))) {
container.chisel.damageItem(1, player);
if (container.chisel.stackSize <= 0) {
player.inventory.mainInventory[player.inventory.currentItem] = null;
player.setCurrentItemOrArmor(0, null);
}
}