1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2025-07-16 06:40:33 +02:00

Fix ferns compatibility with minetest >= 0.4.16 (#78)

This commit is contained in:
sys4-fr
2018-03-17 21:37:02 +01:00
committed by Vanessa Dannenberg
parent 0af7b69afa
commit 9789d6da3a
6 changed files with 32 additions and 6 deletions

View File

@ -6,12 +6,17 @@ local S = plantlife_i18n.gettext
-- (by Mossmanikin)
-- License (everything): WTFPL
-----------------------------------------------------------------------------------------------
local fern1 = minetest.registered_items["default:fern_1"] or false
fern1 = (fern1 and fern1.name) or "ferns:fern_01"
minetest.register_craft({
type = "shapeless",
output = "ferns:fiddlehead 3",
recipe = {"ferns:fern_01"},
replacements = {
{"ferns:fern_01", "ferns:ferntuber"}
{fern1, "ferns:ferntuber"}
},
})