OSDN Git Service

同期バグ修正
authormozipi <mozipi@users.sourceforge.jp>
Thu, 3 Jan 2013 15:00:26 +0000 (00:00 +0900)
committermozipi <mozipi@users.sourceforge.jp>
Thu, 3 Jan 2013 15:00:26 +0000 (00:00 +0900)
common/chemicraft/container/ContainerChemicalCombinationTable.java
common/chemicraft/inventory/InventoryChemicalCombinationTableResult.java

index db89f56..f291e81 100644 (file)
@@ -6,7 +6,6 @@ import net.minecraft.src.EntityPlayer;
 import net.minecraft.src.IInventory;
 import net.minecraft.src.ItemStack;
 import net.minecraft.src.Slot;
-import net.minecraft.src.TileEntity;
 import net.minecraft.src.World;
 import chemicraft.ChemiCraft;
 import chemicraft.ChemiCraftAPI;
@@ -88,6 +87,9 @@ public class ContainerChemicalCombinationTable extends Container {
        @Override
        public void onCraftMatrixChanged(IInventory par1IInventory){
                this.invr.setInventorySlotContents(0, ChemiCraftAPI.getInstance().getCraftingManager().getChemicalCombinationResult(this.tileentity.getAtomsList(), this.tileentity.getAtomsAmountList()));
+               if (par1IInventory instanceof InventoryChemicalCombinationTableResult) {
+                       PacketDispatcher.sendPacketToServer(this.tileentity.getDescriptionPacket());
+               }
        }
 
        @Override
index 2410013..b319ba7 100644 (file)
@@ -7,7 +7,7 @@ import net.minecraft.src.ItemStack;
 
 public class InventoryChemicalCombinationTableResult implements IInventory {
 
-       private ItemStack[] inventory = new ItemStack[16];
+       private ItemStack[] inventory = new ItemStack[15];
        private Container eventHandler;
 
        public void setEventHandler(Container par1){