Fixed Advanced Relays connected to Item Interfaces directly having their settings swapped

This commit is contained in:
Ellpeck 2016-10-11 14:41:26 +02:00
parent d24a09ad67
commit 794383ccf1

View file

@ -154,7 +154,7 @@ public class TileEntityItemViewer extends TileEntityInventoryBase{
boolean whitelisted = handler.relayInQuestion.isWhitelisted(stack, output); boolean whitelisted = handler.relayInQuestion.isWhitelisted(stack, output);
TileEntityLaserRelayItem connected = this.connectedRelay; TileEntityLaserRelayItem connected = this.connectedRelay;
if(connected != null && connected != handler.relayInQuestion){ if(connected != null && connected != handler.relayInQuestion){
return whitelisted && connected.isWhitelisted(stack, !output); return whitelisted && connected.isWhitelisted(stack, output);
} }
else{ else{
return whitelisted; return whitelisted;