From 76360dbf148d45872ea2655c3f8c843bbed60466 Mon Sep 17 00:00:00 2001 From: Niklp Date: Thu, 30 May 2024 16:35:36 +0200 Subject: [PATCH] Disable jungletree generation when `default` isn't available --- init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 11e3760..229ee1f 100644 --- a/init.lua +++ b/init.lua @@ -163,7 +163,9 @@ minetest.register_decoration(translate_biome_defs(moretrees.rubber_tree_biome, " minetest.register_decoration(translate_biome_defs(moretrees.willow_biome, "willow")) minetest.register_decoration(translate_biome_defs(moretrees.birch_biome, "birch")) minetest.register_decoration(translate_biome_defs(moretrees.spruce_biome, "spruce")) -minetest.register_decoration(translate_biome_defs(moretrees.jungletree_biome, "jungletree")) +if minetest.get_modpath("default") then + minetest.register_decoration(translate_biome_defs(moretrees.jungletree_biome, "jungletree")) +end minetest.register_decoration(translate_biome_defs(moretrees.fir_biome, "fir", 1)) if minetest.get_modpath("snow") then minetest.register_decoration(translate_biome_defs(moretrees.fir_biome_snow, "fir", 2))