mirror of
https://github.com/minetest-mods/hopper.git
synced 2025-01-03 02:57:29 +01:00
Avoid hoppers to "repair" taken items (#10)
This commit is contained in:
parent
eb26adcbfe
commit
51b70fb5ee
@ -100,7 +100,7 @@ hopper.take_item_from = function(hopper_pos, target_pos, target_node, target_inv
|
||||
or target_def.allow_metadata_inventory_take(target_pos, target_inventory_name, i, stack_to_take, placer) > 0 then
|
||||
target_inv:set_stack(target_inventory_name, i, stack)
|
||||
--add to hopper
|
||||
hopper_inv:add_item("main", item)
|
||||
hopper_inv:add_item("main", stack_to_take)
|
||||
if target_def.on_metadata_inventory_take ~= nil and placer ~= nil then
|
||||
target_def.on_metadata_inventory_take(target_pos, target_inventory_name, i, stack_to_take, placer)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user