From: Dániel Juhász Date: Sat, 22 Apr 2017 12:34:51 +0000 (+0200) Subject: Creative: Automatic item colorization for creative mode X-Git-Tag: 0.4.16~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=24559d012e11fae3f6f32a5221b460f6999002b7;p=oweals%2Fminetest_game.git Creative: Automatic item colorization for creative mode --- 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