From e8108a9c3661e922fb98aa226df863a9b031d704 Mon Sep 17 00:00:00 2001 From: Gaelmare <2gaelmare@gmail.com> Date: Sat, 24 Dec 2022 23:35:17 -0700 Subject: [PATCH] Version 0.9.17 - Obey DT worldgen config --- README.md | 4 ---- gradle.properties | 2 +- .../java/org/labellum/mc/dynamictreestfc/DynamicTreesTFC.java | 2 +- .../org/labellum/mc/dynamictreestfc/proxy/CommonProxy.java | 4 +++- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 58bff77..26d2e56 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,6 @@ Translations and textures welcome. LATE BETA, needs help with tree placement and density, as well as TFC specific JoCode library. ## Current issues/todo -* Add TFC Rooty Soil that reverts to correct dirt block on root death -* Passable leaves * Correct density generation -* Fix lame FPS? * Fix chopping speed -* Kill cascading worldgen diff --git a/gradle.properties b/gradle.properties index 48393b6..5efce88 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ modGroup=org.labellum.mc -modVersion=0.9.16 +modVersion=0.9.17 modBaseName=dynamictreestfc forgeVersion=1.12.2-14.23.5.2847 mcpVersion=stable_39 diff --git a/src/main/java/org/labellum/mc/dynamictreestfc/DynamicTreesTFC.java b/src/main/java/org/labellum/mc/dynamictreestfc/DynamicTreesTFC.java index 4a01612..0e1a4ac 100644 --- a/src/main/java/org/labellum/mc/dynamictreestfc/DynamicTreesTFC.java +++ b/src/main/java/org/labellum/mc/dynamictreestfc/DynamicTreesTFC.java @@ -30,7 +30,7 @@ public class DynamicTreesTFC public static final String MOD_ID = "dynamictreestfc"; public static final String MOD_NAME = "DynamicTreesTFC"; - public static final String VERSION = "0.9.16"; + public static final String VERSION = "0.9.17"; public static final String DEPENDENCIES = REQAFTER + TerraFirmaCraft.MOD_ID + AT + "1.7.3.161" + ORGREATER + diff --git a/src/main/java/org/labellum/mc/dynamictreestfc/proxy/CommonProxy.java b/src/main/java/org/labellum/mc/dynamictreestfc/proxy/CommonProxy.java index a683890..314b726 100644 --- a/src/main/java/org/labellum/mc/dynamictreestfc/proxy/CommonProxy.java +++ b/src/main/java/org/labellum/mc/dynamictreestfc/proxy/CommonProxy.java @@ -2,6 +2,7 @@ import net.dries007.tfc.api.registries.TFCRegistries; import net.dries007.tfc.api.types.Tree; +import com.ferreusveritas.dynamictrees.api.WorldGenRegistry; import org.labellum.mc.dynamictreestfc.DTTFCGenerator; import org.labellum.mc.dynamictreestfc.ModBlocks; import org.labellum.mc.dynamictreestfc.ModTrees; @@ -16,7 +17,8 @@ public void preInit() public void init() { - replaceGenerators(); + if (WorldGenRegistry.isWorldGenEnabled()) + replaceGenerators(); } private void replaceGenerators()