Fix builtin item metatable (#2328)
Co-authored-by: Alexander Weber <web.alexander@web.de>
This commit is contained in:
parent
11102e4e17
commit
5979c4188d
@ -70,5 +70,5 @@ local item = {
|
||||
}
|
||||
|
||||
-- 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user