From 48099ebcb59c03d512017871cfb471667867a304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imre=20P=C3=A9ntek?= Date: Sat, 30 Mar 2024 21:15:03 +0100 Subject: [PATCH] luacheck fix --- mods/bones/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/bones/init.lua b/mods/bones/init.lua index 94ba7d7e..cfa4707a 100644 --- a/mods/bones/init.lua +++ b/mods/bones/init.lua @@ -86,8 +86,8 @@ end -- slot reordering to make sure the first rows of the bone are always populated local function bones_inv_reorder(meta) - local next_empty=1 -- there are no empty slots inside the bones before this - local next_populated=1 -- there are no populated slots preceded by unpopulated slots before this + local next_empty=1 -- there are no empty slots inside the bones before this + local next_populated -- there are no populated slots preceded by unpopulated slots before this local inv=meta:get_inventory() next_empty=find_next_empty(inv,"main",next_empty) if next_empty < 0 then