From ee727009543c6829599fcf71ef0b6c8d999cea02 Mon Sep 17 00:00:00 2001 From: Robert S Date: Tue, 9 Sep 2014 22:04:35 -0400 Subject: [PATCH] Made an attempt to fix Block Placer not rendering its inventory --- .../scala/resonantinduction/archaic/crate/TileCrate.scala | 2 +- .../mechanical/process/edit/TilePlacer.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/scala/resonantinduction/archaic/crate/TileCrate.scala b/src/main/scala/resonantinduction/archaic/crate/TileCrate.scala index 358ccbf53..5bb3b5073 100644 --- a/src/main/scala/resonantinduction/archaic/crate/TileCrate.scala +++ b/src/main/scala/resonantinduction/archaic/crate/TileCrate.scala @@ -334,7 +334,7 @@ class TileCrate extends TileInventory(Material.rock) with TPacketReceiver with I this.onInventoryChanged } - def onInventoryChanged + override def onInventoryChanged { if (worldObj != null && !worldObj.isRemote) doUpdate = true } diff --git a/src/main/scala/resonantinduction/mechanical/process/edit/TilePlacer.java b/src/main/scala/resonantinduction/mechanical/process/edit/TilePlacer.java index 4d77a202c..597e3e531 100644 --- a/src/main/scala/resonantinduction/mechanical/process/edit/TilePlacer.java +++ b/src/main/scala/resonantinduction/mechanical/process/edit/TilePlacer.java @@ -159,6 +159,12 @@ public class TilePlacer extends TileInventory implements IRotatable, IPacketRece return new PacketTile(this, nbt); } + @Override + public void onInventoryChanged() + { + sendPacket(getDescPacket()); + } + @Override public void read(ByteBuf data, EntityPlayer player, PacketType type) {