mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-26 01:13:49 +01:00
prevent crash when dropping item
This commit is contained in:
parent
9271f07f12
commit
22dc40cacc
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
|
and (not creative or not inv:contains_item("main", item, true)) then
|
||||||
inv:add_item("main", item)
|
inv:add_item("main", item)
|
||||||
elseif not creative then
|
elseif not creative then
|
||||||
minetest.item_drop(item, digger, pos)
|
minetest.item_drop(ItemStack(item), digger, pos)
|
||||||
end
|
end
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user