From 24559d012e11fae3f6f32a5221b460f6999002b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?D=C3=A1niel=20Juh=C3=A1sz?= Date: Sat, 22 Apr 2017 14:34:51 +0200 Subject: [PATCH] Creative: Automatic item colorization for creative mode --- mods/creative/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/creative/init.lua b/mods/creative/init.lua index f9047189..bba9b34e 100644 --- a/mods/creative/init.lua +++ b/mods/creative/init.lua @@ -55,8 +55,7 @@ function minetest.handle_node_drops(pos, drops, digger) local inv = digger:get_inventory() if inv then for _, item in ipairs(drops) do - item = ItemStack(item):get_name() - if not inv:contains_item("main", item) then + if not inv:contains_item("main", item, true) then inv:add_item("main", item) end end -- 2.25.1