From 4176fdaf89736b0e81b9a69bfe9bf5e644a74ba2 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Sat, 20 Jun 2015 22:59:21 +0200 Subject: [PATCH] fixed local var --- mods/tsm_pyramids/room.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/tsm_pyramids/room.lua b/mods/tsm_pyramids/room.lua index 4de9995f..93a8b0f8 100755 --- a/mods/tsm_pyramids/room.lua +++ b/mods/tsm_pyramids/room.lua @@ -95,7 +95,7 @@ function pyramids.make_room(pos) if ix < 3 then p2 = 1 else p2 = 3 end pyramids.fill_chest({x=loch.x+ix,y=loch.y-iy,z=loch.z+iz}) end - node_name = replace(n_str,iy) + local node_name = replace(n_str,iy) minetest.set_node({x=loch.x+ix,y=loch.y-iy,z=loch.z+iz}, {name=node_name, param2=p2}) if node_name == "maptools:chest" then table.insert(pyramids.saved_chests,1,{x=loch.x+ix,y=loch.y-iy,z=loch.z+iz})