mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 18:30:23 +01:00
Items can be inserted in furnaces through side
This commit is contained in:
parent
1385c8dde2
commit
d5f7f5fb8a
@ -18,10 +18,8 @@ minetest.register_node(":default:furnace", {
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
if direction.y==1 then
|
if direction.y==1 then
|
||||||
return inv:add_item("fuel",stack)
|
return inv:add_item("fuel",stack)
|
||||||
elseif direction.y==-1 then
|
|
||||||
return inv:add_item("src",stack)
|
|
||||||
else
|
else
|
||||||
return stack
|
return inv:add_item("src",stack)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
can_insert=function(pos,node,stack,direction)
|
can_insert=function(pos,node,stack,direction)
|
||||||
@ -74,10 +72,8 @@ minetest.register_node(":default:furnace_active", {
|
|||||||
local inv=meta:get_inventory()
|
local inv=meta:get_inventory()
|
||||||
if direction.y==1 then
|
if direction.y==1 then
|
||||||
return inv:add_item("fuel",stack)
|
return inv:add_item("fuel",stack)
|
||||||
elseif direction.y==-1 then
|
|
||||||
return inv:add_item("src",stack)
|
|
||||||
else
|
else
|
||||||
return stack
|
return inv:add_item("src",stack)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
can_insert=function(pos,node,stack,direction)
|
can_insert=function(pos,node,stack,direction)
|
||||||
|
Loading…
Reference in New Issue
Block a user