mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 00:38:35 +01:00
Safer check
This commit is contained in:
parent
58e5af0814
commit
2fe50c71aa
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ public class TileEntityItemViewer extends TileEntityInventoryBase{
|
|||
private boolean isWhitelisted(SpecificItemHandlerInfo handler, ItemStack stack){
|
||||
boolean whitelisted = handler.relayInQuestion.isWhitelisted(stack);
|
||||
TileEntityLaserRelayItem connected = this.getConnectedRelay();
|
||||
if(!PosUtil.areSamePos(handler.relayInQuestion.getPos(), connected.getPos())){
|
||||
if(connected != handler.relayInQuestion){
|
||||
return whitelisted && connected.isWhitelisted(stack);
|
||||
}
|
||||
else{
|
||||
|
|
Loading…
Reference in a new issue