From 3253423dc69ed5c2d75b17d4fe09d25f143a53ba Mon Sep 17 00:00:00 2001 From: Splizard Date: Thu, 21 Feb 2013 12:39:25 +1300 Subject: [PATCH] Fixed bug. bad argument #1 to 'get_node' (table expected, got nil) --- mods/random_chests/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/random_chests/init.lua b/mods/random_chests/init.lua index a98e0ef..d962b03 100644 --- a/mods/random_chests/init.lua +++ b/mods/random_chests/init.lua @@ -117,10 +117,10 @@ function random_chests.refill(i) if chests[i] then local n = env:get_node(chests[i]).name if (not n:match("default:chest")) and n ~= "ignore" then - table.remove(chests,i) print("chest missing! found:") print(env:get_node(chests[i]).name) print("instead") + table.remove(chests,i) else fill_chest(chests[i]) end