Fix infinite loop with local get_meta

This commit is contained in:
luk3yx 2021-03-11 07:38:07 +13:00
parent b0b38ee34c
commit 83b6a9827a
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ end
local get_meta = minetest.get_meta
function minetest.get_meta(...)
local meta = get_meta(...)
if type(meta) == 'userdata' then
if old_nodemeta_set_string == nil and type(meta) == 'userdata' then
minetest.get_meta = get_meta
local cls = getmetatable(meta)
old_nodemeta_set_string = cls.set_string