Almost done with Auto Chisel

This commit is contained in:
TheCricket committed 2014-10-29 18:10:28 -04:00
1 parent 5b5e29a8ce
commit 0e9243602b
8 files changed
+87 -34

No files matched your search

@@ -18,8 +18,8 @@ public class ContainerAutoChisel extends Container {
autoChisel = tileEntityAutoChisel;
addSlotToContainer(new Slot(tileEntityAutoChisel, 0, 53, 15));
addSlotToContainer(new Slot(tileEntityAutoChisel, 1, 103, 15));
addSlotToContainer(new Slot(tileEntityAutoChisel, 2, 78, 51));
addSlotToContainer(new Slot(tileEntityAutoChisel, 1, 78, 51));
addSlotToContainer(new Slot(tileEntityAutoChisel, 2, 103, 15));
bindPlayerInventory(player);
}
@@ -50,6 +50,12 @@ public class ContainerAutoChisel extends Container {
ItemStack stackInSlot = slotObject.getStack();
stack = stackInSlot.copy();
if(slot == 2){
if(!this.mergeItemStack(stackInSlot, 3, 39, true)){
return null;
}
}
if(slot < autoChisel.getSizeInventory()){
if(!this.mergeItemStack(stackInSlot, 0, 35, true)){
return null;