diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-02-21 21:03:08 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-02-21 21:03:08 +0000 |
commit | 511906aa01bf119d4c29954c3b9d916291b3a9fd (patch) | |
tree | a571ea7a63578f252240f4928af9d626f41764c8 | |
parent | f234ae1b4a5f54cb1d24d184fdfa6caeaf61a165 (diff) |
Fix protected chest rightclick error on some builds
-rw-r--r-- | doors_chest.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doors_chest.lua b/doors_chest.lua index 409e926..708eb30 100644 --- a/doors_chest.lua +++ b/doors_chest.lua @@ -536,6 +536,11 @@ minetest.register_node("protector:chest", { end local meta = minetest.get_meta(pos) + + if not meta then + return + end + local spos = pos.x .. "," .. pos.y .. "," ..pos.z local formspec = "size[8,9]" .. default.gui_bg @@ -550,7 +555,6 @@ minetest.register_node("protector:chest", { .. "list[current_player;main;0,6.08;8,3;8]" .. "listring[nodemeta:" .. spos .. ";main]" .. "listring[current_player;main]" - .. default.get_hotbar_bg(0,5) minetest.show_formspec( clicker:get_player_name(), |