mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +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){
|
private boolean isWhitelisted(SpecificItemHandlerInfo handler, ItemStack stack){
|
||||||
boolean whitelisted = handler.relayInQuestion.isWhitelisted(stack);
|
boolean whitelisted = handler.relayInQuestion.isWhitelisted(stack);
|
||||||
TileEntityLaserRelayItem connected = this.getConnectedRelay();
|
TileEntityLaserRelayItem connected = this.getConnectedRelay();
|
||||||
if(!PosUtil.areSamePos(handler.relayInQuestion.getPos(), connected.getPos())){
|
if(connected != handler.relayInQuestion){
|
||||||
return whitelisted && connected.isWhitelisted(stack);
|
return whitelisted && connected.isWhitelisted(stack);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in a new issue