fix binding cameras not working
@@ -55,7 +55,7 @@ public class CameraMonitorItem extends Item {
if(world.getBlockState(pos).getBlock() == SCContent.SECURITY_CAMERA.get() && !PlayerUtils.isPlayerMountedOnCamera(player)){
SecurityCameraBlockEntity te = (SecurityCameraBlockEntity)world.getBlockEntity(pos);
- if(!te.getOwner().isOwner(player) || !ModuleUtils.isAllowed(te, player)){
+ if(!te.getOwner().isOwner(player) && !ModuleUtils.isAllowed(te, player)){
PlayerUtils.sendMessageToPlayer(player, Utils.localize(SCContent.CAMERA_MONITOR.get().getDescriptionId()), Utils.localize("messages.securitycraft:cameraMonitor.cannotView"), ChatFormatting.RED);
return InteractionResult.FAIL;
}
