Replace deprecated meta:set_string() call

This commit is contained in:
Niklp 2024-06-29 16:23:01 +02:00
parent 599dedd927
commit c9e850bc75
No known key found for this signature in database
GPG key ID: 05D6F5035E66267A

View file

@ -284,7 +284,7 @@ function default.chest.register_chest(prefixed_name, d)
nodenames = {name},
action = function(pos, node)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", nil)
meta:set_string("formspec", "")
local inv = meta:get_inventory()
local list = inv:get_list("default:chest")
if list then