From 5979c4188db668f383f30f4caeace82a2edcc9bf Mon Sep 17 00:00:00 2001 From: sofar Date: Tue, 22 Sep 2020 09:39:11 -0700 Subject: [PATCH] Fix builtin item metatable (#2328) Co-authored-by: Alexander Weber --- mods/default/item_entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/item_entity.lua b/mods/default/item_entity.lua index 8545436..3d1e274 100644 --- a/mods/default/item_entity.lua +++ b/mods/default/item_entity.lua @@ -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)