Battery now updates state on chunk load

This commit is contained in:
Aidan Brady 2013-08-05 16:00:41 -04:00
parent 66c94f9e14
commit 0c2ea100d8

View file

@ -115,6 +115,17 @@ public class TileEntityBattery extends TileEntityBase implements IPacketReceiver
PacketHandler.sendTileEntityPacketToClients(this, getNetworkedData(new ArrayList()).toArray()); PacketHandler.sendTileEntityPacketToClients(this, getNetworkedData(new ArrayList()).toArray());
} }
@Override
public void validate()
{
super.validate();
if(worldObj.isRemote)
{
PacketHandler.sendDataRequest(this);
}
}
@Override @Override
public void invalidate() public void invalidate()
{ {