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 GitHub
parent 4c145bf9aa
commit 5348d6e5bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,5 +74,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)