remove incorrect if check from scanner door
the permission is checked later on, and should not preemptively rule out checking for a player head
@@ -47,7 +47,6 @@ public class ScannerDoorBlockEntity extends SpecialDoorBlockEntity implements IV
String name = player.getName().getString();
- if(!getOwner().isOwner(player) && !ModuleUtils.isAllowed(this, player)) {
if (ConfigHandler.SERVER.trickScannersWithPlayerHeads.get() && player.getItemBySlot(EquipmentSlot.HEAD).getItem() == Items.PLAYER_HEAD)
name = PlayerUtils.getNameOfSkull(player);
@@ -55,7 +54,6 @@ public class ScannerDoorBlockEntity extends SpecialDoorBlockEntity implements IV
PlayerUtils.sendMessageToPlayer(player, Utils.localize(SCContent.SCANNER_DOOR_ITEM.get().getDescriptionId()), Utils.localize("messages.securitycraft:retinalScanner.notOwner", PlayerUtils.getOwnerComponent(getOwner().getName())), ChatFormatting.RED);
return;
}
- }
boolean open = !lowerState.getValue(DoorBlock.OPEN);
int length = getSignalLength();
