mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-15 17:44:57 +00:00
fix aiob when opening chisel in some slots (#51)
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -152,13 +152,13 @@ public class ContainerChisel extends Container {
|
||||
}
|
||||
|
||||
public void onChiselSlotChanged() {
|
||||
ItemStack stack = playerInventory.mainInventory[chiselSlot];
|
||||
ItemStack stack = playerInventory.getStackInSlot(chiselSlot);
|
||||
if (stack == null || !stack.isItemEqual(chisel)) finished = true;
|
||||
|
||||
if (finished) return;
|
||||
|
||||
General.setChiselTarget(chisel, inventory.getStackInSpecialSlot());
|
||||
|
||||
playerInventory.mainInventory[chiselSlot] = chisel;
|
||||
playerInventory.setInventorySlotContents(chiselSlot, chisel);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user