From 5ee3b194f5d804208092772ce260b2d7291fb17e Mon Sep 17 00:00:00 2001 From: emrah Date: Fri, 22 Mar 2024 16:59:23 +0300 Subject: [PATCH] fix(owner_restricted): make luachecker happy --- owner_restricted/mod_owner_restricted.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owner_restricted/mod_owner_restricted.lua b/owner_restricted/mod_owner_restricted.lua index 73be8b5..0d533d2 100644 --- a/owner_restricted/mod_owner_restricted.lua +++ b/owner_restricted/mod_owner_restricted.lua @@ -33,7 +33,7 @@ local function terminator(room) -- stop this terminator if there is no one in the room -- this happens if the room was already destroyed by another mechanism local occupant_count = it.count(room:each_occupant()) - if not (occupant_count > 0) then + if occupant_count == 0 then module:log( LOGLEVEL, "Noone in the room, terminator is stopped, %s, %s",