Fix dupe in chisel shift clicking

This commit is contained in:
tterrag1098 committed 2015-01-14 21:03:22 -05:00
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();