Make straw stairs usable as fuel (#2627)
authorPaul Ouellette <oue.paul18@gmail.com>
Mon, 13 Apr 2020 09:34:10 +0000 (05:34 -0400)
committerGitHub <noreply@github.com>
Mon, 13 Apr 2020 09:34:10 +0000 (11:34 +0200)
mods/farming/init.lua
mods/farming/nodes.lua

index 96672fa10ead9a2ab4cabf4949086b413a49c364..b583b8bd8ba8e6c611d8e575cfdfe9b5d124e8d8 100644 (file)
@@ -115,12 +115,6 @@ minetest.register_craft({
 
 -- Fuels
 
-minetest.register_craft({
-       type = "fuel",
-       recipe = "farming:straw",
-       burntime = 3,
-})
-
 minetest.register_craft({
        type = "fuel",
        recipe = "farming:wheat",
index 051f4ef981c3721e3b74981048d143332a439f79..0e584f03c80f3e915c18daca2dc1e1d02729f35d 100644 (file)
@@ -153,6 +153,13 @@ minetest.register_node("farming:straw", {
        sounds = default.node_sound_leaves_defaults(),
 })
 
+-- Registered before the stairs so the stairs get fuel recipes.
+minetest.register_craft({
+       type = "fuel",
+       recipe = "farming:straw",
+       burntime = 3,
+})
+
 do
        local recipe = "farming:straw"
        local groups = {snappy = 3, flammable = 4}