Skip to content

Commit 24559d0

Browse files
juhdanadparamat
authored andcommittedApr 23, 2017
Creative: Automatic item colorization for creative mode
1 parent 2668619 commit 24559d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎mods/creative/init.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ function minetest.handle_node_drops(pos, drops, digger)
5555
local inv = digger:get_inventory()
5656
if inv then
5757
for _, item in ipairs(drops) do
58-
item = ItemStack(item):get_name()
59-
if not inv:contains_item("main", item) then
58+
if not inv:contains_item("main", item, true) then
6059
inv:add_item("main", item)
6160
end
6261
end

0 commit comments

Comments
 (0)
Please sign in to comment.