Skip to content

Commit

Permalink
fix(owner_restricted): make luachecker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
emrahcom committed Mar 22, 2024
1 parent 276cd60 commit 5ee3b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion owner_restricted/mod_owner_restricted.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5ee3b19

Please sign in to comment.