OSDN Git Service

誰かEntityAtomGrenadeを登録してくれ...
[chemicraft/chemicraft.git] / common / chemicraft / container / ContainerChemicalCombinationTable.java
index d845741..e671966 100644 (file)
@@ -57,9 +57,9 @@ public class ContainerChemicalCombinationTable extends Container {
                this.invm = this.tileentity.getInvMaterial();
                this.invr = this.tileentity.getInvResult();
 
-               for(int i = 0;i < 4;i++){
-                       for(int j = 0;j < 4;j++){
-                               this.addSlotToContainer(new SlotChemicalCombinationTableMaterial(this.invm, i * 4 + j, i * 18 + 16, j * 18 + 8));
+               for(int i = 0;i < 5;i++){
+                       for(int j = 0;j < 3;j++){
+                               this.addSlotToContainer(new SlotChemicalCombinationTableMaterial(this.invm, i * 3 + j, i * 18 + 16, j * 18 + 15));
                        }
                }
                this.addSlotToContainer(new SlotChemicalCombinationTableResult(invr, 0, 123, 34));
@@ -70,19 +70,21 @@ public class ContainerChemicalCombinationTable extends Container {
                {
                        for (int var4 = 0; var4 < 9; ++var4)
                        {
-                               this.addSlotToContainer(new Slot(par1EntityPlayer.inventory, var4 + var3 * 9 + 9, 8 + var4 * 18, 85 + var3 * 18));
+                               this.addSlotToContainer(new Slot(par1EntityPlayer.inventory, var4 + var3 * 9 + 9, 8 + var4 * 18, 121 + var3 * 18));
                        }
                }
 
                for (var3 = 0; var3 < 9; ++var3)
                {
-                       this.addSlotToContainer(new Slot(par1EntityPlayer.inventory, var3, 8 + var3 * 18, 143));
+                       this.addSlotToContainer(new Slot(par1EntityPlayer.inventory, var3, 8 + var3 * 18, 179));
                }
 
                this.invm.setEventHandler(this);
                this.onCraftMatrixChanged(invm);
        }
 
+
+
        @Override
        public void onCraftMatrixChanged(IInventory par1IInventory){
                this.invr.setInventorySlotContents(0, ChemiCraftAPI.getInstance().getCraftingManager().getChemicalCombinationResult(this.tileentity.getAtomsList(), this.tileentity.getAtomsAmountList()));