mirror of
https://github.com/minetest-mods/hopper.git
synced 2025-01-03 11:07:30 +01:00
support transitioning to single_craftable_item better
This commit is contained in:
parent
7317380996
commit
561d74b728
3
init.lua
3
init.lua
@ -124,6 +124,9 @@ local hopper_on_place = function(itemstack, placer, pointed_thing, node_name)
|
||||
elseif z == 1 and (single_craftable_item or node_name == "hopper:hopper_side") then
|
||||
returned_stack, success = minetest.item_place_node(ItemStack("hopper:hopper_side"), placer, pointed_thing, 1)
|
||||
else
|
||||
if single_craftable_item then
|
||||
node_name = "hopper:hopper" -- For cases where single_craftable_item was set on an existing world and there are still side hoppers in player inventories
|
||||
end
|
||||
returned_stack, success = minetest.item_place_node(ItemStack(node_name), placer, pointed_thing)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user