forked from minetest-mods/more_chests
Attempt to fix indexing a nil value.
This commit is contained in:
parent
4e7f6d19fb
commit
8ddbd92cf3
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user