From: Novatux Date: Wed, 16 Jan 2013 11:26:11 +0000 (+0100) Subject: Items can be inserted in furnaces through side X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=d5f7f5fb8a963735a9e6a79f8ad1979b68990c72;p=zefram%2Fminetest%2Fpipeworks.git Items can be inserted in furnaces through side --- diff --git a/compat.lua b/compat.lua index 31e59a2..40ed4a1 100644 --- a/compat.lua +++ b/compat.lua @@ -18,10 +18,8 @@ minetest.register_node(":default:furnace", { local inv=meta:get_inventory() if direction.y==1 then return inv:add_item("fuel",stack) - elseif direction.y==-1 then - return inv:add_item("src",stack) else - return stack + return inv:add_item("src",stack) end end, can_insert=function(pos,node,stack,direction) @@ -74,10 +72,8 @@ minetest.register_node(":default:furnace_active", { local inv=meta:get_inventory() if direction.y==1 then return inv:add_item("fuel",stack) - elseif direction.y==-1 then - return inv:add_item("src",stack) else - return stack + return inv:add_item("src",stack) end end, can_insert=function(pos,node,stack,direction)