Skip to content

Commit

Permalink
fallback on moretrees spaling texture when default not present
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed May 24, 2024
1 parent 04e4ab0 commit 0adb6c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node_defs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")},
Expand All @@ -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 = {
Expand Down

0 comments on commit 0adb6c3

Please sign in to comment.