mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fix Phantom Laser Connections whenever breaking a laser that's directly connected to an Item Interface
This commit is contained in:
parent
dd95c826de
commit
f7f68e4f16
1 changed files with 3 additions and 2 deletions
|
@ -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()){
|
||||||
|
|
Loading…
Reference in a new issue