OSDN Git Service

同期バグ修正
[chemicraft/chemicraft.git] / common / chemicraft / container / ContainerChemicalCombinationTable.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