Fix Phantom Laser Connections whenever breaking a laser that's directly connected to an Item Interface

This commit is contained in:
Ellpeck 2016-11-25 15:18:14 +01:00
parent dd95c826de
commit f7f68e4f16

View file

@ -75,11 +75,12 @@ public class TileEntityItemViewer extends TileEntityInventoryBase{
} }
private void queryAndSaveData(){ private void queryAndSaveData(){
this.genericInfos.clear();
this.specificInfos.clear();
if(this.connectedRelay != null){ if(this.connectedRelay != null){
Network network = ActuallyAdditionsAPI.connectionHandler.getNetworkFor(this.connectedRelay.getPos(), this.worldObj); Network network = ActuallyAdditionsAPI.connectionHandler.getNetworkFor(this.connectedRelay.getPos(), this.worldObj);
if(network != null && (this.oldNetwork != network || this.lastNetworkChangeAmount != network.changeAmount)){ if(network != null && (this.oldNetwork != network || this.lastNetworkChangeAmount != network.changeAmount)){
this.genericInfos.clear();
this.specificInfos.clear();
this.connectedRelay.getItemHandlersInNetwork(network, this.genericInfos); this.connectedRelay.getItemHandlersInNetwork(network, this.genericInfos);
if(!this.genericInfos.isEmpty()){ if(!this.genericInfos.isEmpty()){