From: Paul Ouellette Date: Mon, 13 Apr 2020 09:34:10 +0000 (-0400) Subject: Make straw stairs usable as fuel (#2627) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ea4ce80f7c7c213d5e92545b2a6e53272040f186;p=oweals%2Fminetest_game.git Make straw stairs usable as fuel (#2627) --- diff --git a/mods/farming/init.lua b/mods/farming/init.lua index 96672fa1..b583b8bd 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -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", diff --git a/mods/farming/nodes.lua b/mods/farming/nodes.lua index 051f4ef9..0e584f03 100644 --- a/mods/farming/nodes.lua +++ b/mods/farming/nodes.lua @@ -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}