mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 15:00:18 +01:00
Replace deprecated meta:set_string()
call
This commit is contained in:
parent
599dedd927
commit
da0509c5bd
@ -284,7 +284,7 @@ function default.chest.register_chest(prefixed_name, d)
|
|||||||
nodenames = {name},
|
nodenames = {name},
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("formspec", nil)
|
meta:set_string("formspec", "")
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
local list = inv:get_list("default:chest")
|
local list = inv:get_list("default:chest")
|
||||||
if list then
|
if list then
|
||||||
|
Loading…
Reference in New Issue
Block a user