From 0adb6c3aa1ef62c4da9a1868c0cc4fc5ed3a1bb1 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Thu, 23 May 2024 23:03:00 -0400 Subject: [PATCH] fallback on moretrees spaling texture when default not present --- node_defs.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node_defs.lua b/node_defs.lua index c061c23..d805eac 100644 --- a/node_defs.lua +++ b/node_defs.lua @@ -2,6 +2,9 @@ local S = minetest.get_translator("moretrees") moretrees.avoidnodes = {} +local jungle_sapling_texture = minetest.get_modpath("default") and "default_junglesapling.png" + or "moretrees_cedar_sapling.png" + moretrees.treelist = { {"beech", S("Beech Tree")}, {"apple_tree", S("Apple Tree")}, @@ -17,7 +20,7 @@ moretrees.treelist = { {"willow", S("Willow Tree")}, {"rubber_tree", S("Rubber Tree")}, {"fir", S("Douglas Fir"), "fir_cone", S("Fir Cone"), {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 }, - {"jungletree", S("Jungle Tree"), nil, nil, nil, nil, "default_junglesapling.png" }, + {"jungletree", S("Jungle Tree"), nil, nil, nil, nil, jungle_sapling_texture }, } moretrees.treedesc = {