Items can be inserted in furnaces through side
authorNovatux <nathanael.courant@laposte.net>
Wed, 16 Jan 2013 11:26:11 +0000 (12:26 +0100)
committerNovatux <nathanael.courant@laposte.net>
Wed, 16 Jan 2013 11:26:11 +0000 (12:26 +0100)
compat.lua

index 31e59a2c5befa917cb03d52222e6ddcb8e22e373..40ed4a1bb4f20bf6f7130d05262c7acb01e88761 100644 (file)
@@ -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)