Skip to content
Snippets Groups Projects
Commit 24559d01 authored by Dániel Juhász's avatar Dániel Juhász Committed by paramat
Browse files

Creative: Automatic item colorization for creative mode

parent 26686196
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment