Update minetest.show_formspec()
authorPilzAdam <PilzAdam@gmx.de>
Mon, 7 Jan 2013 19:40:41 +0000 (20:40 +0100)
committerPilzAdam <PilzAdam@gmx.de>
Mon, 7 Jan 2013 19:42:31 +0000 (20:42 +0100)
mods/default/init.lua

index 39437813dffbaab6f43f632dd9076d0dfe41da7c..459c06d932f8158945a232d15992b7e6a6a4f6d1 100644 (file)
@@ -1340,7 +1340,7 @@ minetest.register_node("default:chest_locked", {
                local meta = minetest.env:get_meta(pos)
                if has_locked_chest_privilege(meta, clicker) then
                        local pos = pos.x .. "," .. pos.y .. "," ..pos.z
-                       minetest.show_formspec(clicker:get_player_name(),
+                       minetest.show_formspec(clicker:get_player_name(), "default:chest_locked",
                                "size[8,9]"..
                                "list[nodemeta:".. pos .. ";main;0,0;8,4;]"..
                                "list[current_player;main;0,5;8,4;]")