Fix Laser Relays sometimes not updating their caches

This commit is contained in:
Ellpeck 2016-12-03 23:32:03 +01:00
parent 1101bf3fdf
commit c76640733d
3 changed files with 3 additions and 3 deletions

View file

@ -100,7 +100,7 @@ public class TileEntityLaserRelayEnergy extends TileEntityLaserRelay implements
}
}
if(change){
if(change || old.size() != this.receiversAround.size()){
Network network = ActuallyAdditionsAPI.connectionHandler.getNetworkFor(this.getPos(), this.getWorld());
if(network != null){
network.changeAmount++;

View file

@ -63,7 +63,7 @@ public class TileEntityLaserRelayFluids extends TileEntityLaserRelay implements
}
}
if(change){
if(change || old.size() != this.receiversAround.size()){
Network network = ActuallyAdditionsAPI.connectionHandler.getNetworkFor(this.getPos(), this.getWorld());
if(network != null){
network.changeAmount++;

View file

@ -79,7 +79,7 @@ public class TileEntityLaserRelayItem extends TileEntityLaserRelay{
}
}
if(change){
if(change || old.size() != this.handlersAround.size()){
Network network = ActuallyAdditionsAPI.connectionHandler.getNetworkFor(this.getPos(), this.getWorld());
if(network != null){
network.changeAmount++;