forked from mtcontrib/unifieddyes
Merge branch 'fix_drop_fix' into 'master'
prevent crash when dropping item See merge request VanessaE/unifieddyes!3
This commit is contained in:
commit
c6883a8300
2
init.lua
2
init.lua
@ -203,7 +203,7 @@ local function move_item(item, pos, inv, digger)
|
||||
and (not creative or not inv:contains_item("main", item, true)) then
|
||||
inv:add_item("main", item)
|
||||
elseif not creative then
|
||||
minetest.item_drop(item, digger, pos)
|
||||
minetest.item_drop(ItemStack(item), digger, pos)
|
||||
end
|
||||
minetest.remove_node(pos)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user