Fix builtin item metatable (#2328)

Co-authored-by: Alexander Weber <web.alexander@web.de>
This commit is contained in:
sofar 2020-09-22 09:39:11 -07:00 committed by mckaygerhard
parent 11102e4e17
commit 5979c4188d

View File

@ -70,5 +70,5 @@ local item = {
} }
-- set defined item as new __builtin:item, with the old one as fallback table -- set defined item as new __builtin:item, with the old one as fallback table
setmetatable(item, builtin_item) setmetatable(item, { __index = builtin_item })
minetest.register_entity(":__builtin:item", item) minetest.register_entity(":__builtin:item", item)