Skip to content
Permalink
Browse files

Fix builtin item metatable (#2328)

Co-authored-by: Alexander Weber <web.alexander@web.de>
  • Loading branch information
sofar and bell07 committed Sep 22, 2020
1 parent 4c145bf commit 5348d6e5bc23629abf2f33f33c3bab8d7de50111
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/default/item_entity.lua
@@ -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.
You can’t perform that action at this time.