Battery now updates state on chunk load
This commit is contained in:
parent
66c94f9e14
commit
0c2ea100d8
1 changed files with 11 additions and 0 deletions
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue