From f7f68e4f1657183c71229447cc7317fb1c48455c Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 25 Nov 2016 15:18:14 +0100 Subject: [PATCH] Fix Phantom Laser Connections whenever breaking a laser that's directly connected to an Item Interface --- .../actuallyadditions/mod/tile/TileEntityItemViewer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityItemViewer.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityItemViewer.java index c2349a8be..593a0d492 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityItemViewer.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityItemViewer.java @@ -75,11 +75,12 @@ public class TileEntityItemViewer extends TileEntityInventoryBase{ } private void queryAndSaveData(){ + this.genericInfos.clear(); + this.specificInfos.clear(); + if(this.connectedRelay != null){ Network network = ActuallyAdditionsAPI.connectionHandler.getNetworkFor(this.connectedRelay.getPos(), this.worldObj); if(network != null && (this.oldNetwork != network || this.lastNetworkChangeAmount != network.changeAmount)){ - this.genericInfos.clear(); - this.specificInfos.clear(); this.connectedRelay.getItemHandlersInNetwork(network, this.genericInfos); if(!this.genericInfos.isEmpty()){