mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 15:00:18 +01:00
Fix builtin item metatable (#2328)
Co-authored-by: Alexander Weber <web.alexander@web.de>
This commit is contained in:
parent
4c145bf9aa
commit
5348d6e5bc
@ -74,5 +74,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…
Reference in New Issue
Block a user