From 0c2ea100d8f1fe6bbeff3e8352f67c57b24f92a5 Mon Sep 17 00:00:00 2001 From: Aidan Brady Date: Mon, 5 Aug 2013 16:00:41 -0400 Subject: [PATCH] Battery now updates state on chunk load --- src/resonantinduction/battery/TileEntityBattery.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/resonantinduction/battery/TileEntityBattery.java b/src/resonantinduction/battery/TileEntityBattery.java index 988fa0d4..4ea11541 100644 --- a/src/resonantinduction/battery/TileEntityBattery.java +++ b/src/resonantinduction/battery/TileEntityBattery.java @@ -114,6 +114,17 @@ public class TileEntityBattery extends TileEntityBase implements IPacketReceiver { PacketHandler.sendTileEntityPacketToClients(this, getNetworkedData(new ArrayList()).toArray()); } + + @Override + public void validate() + { + super.validate(); + + if(worldObj.isRemote) + { + PacketHandler.sendDataRequest(this); + } + } @Override public void invalidate()