diff --git a/mods/tsm_pyramids/room.lua b/mods/tsm_pyramids/room.lua index f523b947..3d15c94f 100755 --- a/mods/tsm_pyramids/room.lua +++ b/mods/tsm_pyramids/room.lua @@ -38,7 +38,7 @@ function loadchests() if file then local saved_chests = minetest.deserialize(file:read()) io.close(file) - if savetable and type(saved_chests) == "table" then + if saved_chests and type(saved_chests) == "table" then minetest.log("action","[tsm_pyramids] Chest loaded") return saved_chests else