mirror of
https://github.com/minetest-mods/more_chests.git
synced 2025-01-09 08:50:18 +01:00
Update shared.lua
This commit is contained in:
parent
bfd3ce5541
commit
f75301acb5
@ -91,11 +91,11 @@ minetest.register_node("more_chests:shared", {
|
||||
minetest.log("action", player:get_player_name()..
|
||||
" takes stuff from shared chest at "..minetest.pos_to_string(pos))
|
||||
end,
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
on_receive_fields = function(pos, formspec, fields, sender)
|
||||
local meta = minetest.env:get_meta(pos);
|
||||
if meta:get_string("owner") == sender:get_player_name() then
|
||||
meta:set_string("shared", fields.shared);
|
||||
meta:set_string("formspec", shared(fields.shared))
|
||||
meta:set_string("formspec", formspec(fields.shared))
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user