mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-08 08:33:37 +02:00
Fix Laser Relays sometimes not updating their caches
This commit is contained in:
parent
1101bf3fdf
commit
c76640733d
|
@ -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++;
|
||||
|
|
|
@ -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++;
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue