mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 16:27:45 +00:00
Fix dupe in chisel shift clicking
This commit is contained in:
1 parent
7ad3e23949
commit
7cf946e377
1 file changed
+2
-2
@@ -89,12 +89,12 @@ public class ContainerChisel extends Container {
|
||||
ItemStack itemstack1 = slot.getStack();
|
||||
itemstack = itemstack1.copy();
|
||||
|
||||
if (slotIdx > InventoryChiselSelection.normalSlots + 1) {
|
||||
if (slotIdx > InventoryChiselSelection.normalSlots) {
|
||||
if (!this.mergeItemStack(itemstack1, InventoryChiselSelection.normalSlots, InventoryChiselSelection.normalSlots + 1, false)) {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
if (slotIdx < InventoryChiselSelection.normalSlots && itemstack1 != null) {
|
||||
if (slotIdx < InventoryChiselSelection.normalSlots + 1 && itemstack1 != null) {
|
||||
entity.inventory.setItemStack(itemstack1.copy());
|
||||
slot.onPickupFromSlot(entity, itemstack1);
|
||||
itemstack1 = entity.inventory.getItemStack();
|
||||
|
||||
Reference in new issue
Block a user