Skip to content

Commit

Permalink
Fix builtin item metatable (#2328)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Weber <web.alexander@web.de>
  • Loading branch information
sofar and bell07 committed Sep 22, 2020
1 parent 4c145bf commit 5348d6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/item_entity.lua
Expand Up @@ -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)

0 comments on commit 5348d6e

Please sign in to comment.