Skip to content

Commit

Permalink
Creative: Automatic item colorization for creative mode
Browse files Browse the repository at this point in the history
  • Loading branch information
juhdanad authored and paramat committed Apr 23, 2017
1 parent 2668619 commit 24559d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mods/creative/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit 24559d0

Please sign in to comment.