diff --git a/archaic/src/main/scala/resonantinduction/archaic/crate/BlockCrate.java b/archaic/src/main/scala/resonantinduction/archaic/crate/BlockCrate.java index b167011a..cf9d3dd6 100644 --- a/archaic/src/main/scala/resonantinduction/archaic/crate/BlockCrate.java +++ b/archaic/src/main/scala/resonantinduction/archaic/crate/BlockCrate.java @@ -372,15 +372,12 @@ public class BlockCrate extends BlockTile } if (ammountEjected >= requestSize) { - tileEntity.onInventoryChanged(); return true; } } - tileEntity.onInventoryChanged(); return true; } } - tileEntity.onInventoryChanged(); return false; } diff --git a/archaic/src/main/scala/resonantinduction/archaic/crate/InventoryCrate.java b/archaic/src/main/scala/resonantinduction/archaic/crate/InventoryCrate.java index 25daca6b..6fba855d 100644 --- a/archaic/src/main/scala/resonantinduction/archaic/crate/InventoryCrate.java +++ b/archaic/src/main/scala/resonantinduction/archaic/crate/InventoryCrate.java @@ -33,6 +33,7 @@ public class InventoryCrate extends ExternalInventory break; } } + this.onInventoryChanged(); } } diff --git a/archaic/src/main/scala/resonantinduction/archaic/crate/TileCrate.java b/archaic/src/main/scala/resonantinduction/archaic/crate/TileCrate.java index c0d670bd..fac00621 100644 --- a/archaic/src/main/scala/resonantinduction/archaic/crate/TileCrate.java +++ b/archaic/src/main/scala/resonantinduction/archaic/crate/TileCrate.java @@ -4,6 +4,7 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.packet.Packet; +import net.minecraft.util.ChatMessageComponent; import net.minecraftforge.common.ForgeDirection; import net.minecraftforge.oredict.OreDictionary; import resonantinduction.core.ResonantInduction; @@ -143,7 +144,6 @@ public class TileCrate extends TileExternalInventory implements IPacketReceiver, if (flag) { this.getInventory().buildInventory(this.sampleStack); - this.onInventoryChanged(); } } } @@ -194,7 +194,7 @@ public class TileCrate extends TileExternalInventory implements IPacketReceiver, { return false; } - + int ddd = 0; @Override public void onReceivePacket(ByteArrayDataInput data, EntityPlayer player, Object... extra) { @@ -206,6 +206,7 @@ public class TileCrate extends TileExternalInventory implements IPacketReceiver, { this.sampleStack = ItemStack.loadItemStackFromNBT(PacketHandler.readNBTTagCompound(data)); this.sampleStack.stackSize = data.readInt(); + //player.sendChatToPlayer(ChatMessageComponent.createFromText("Crate Packet " + (ddd++))); } else {