Attempt to fix indexing a nil value.

This commit is contained in:
Megaf 2014-06-11 09:26:25 -03:00
parent 4e7f6d19fb
commit 8ddbd92cf3
1 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,8 @@ minetest.register_node("more_chests:shared", {
if meta:get_string("owner") == sender:get_player_name() then
meta:set_string("shared", fields.shared);
meta:set_string("formspec", shared(fields.shared))
if not fields then
return end
end
end,
})