fix previous fix
@@ -53,7 +53,7 @@ public class SonicSecuritySystemItem extends BlockItem {
BlockEntity be = world.getBlockEntity(pos);
if (be instanceof ILockable) {
- if(be instanceof IOwnable ownable && ownable.getOwner().isOwner(player)) {
+ if(be instanceof IOwnable ownable && !ownable.getOwner().isOwner(player)) {
PlayerUtils.sendMessageToPlayer(player, Utils.localize(SCContent.SONIC_SECURITY_SYSTEM.get().getDescriptionId()), Utils.localize("messages.securitycraft:notOwned", ownable.getOwner().getName()), ChatFormatting.GREEN);
return InteractionResult.SUCCESS;
}
