From 3f75cb30799e78388da833b16ee034ee24143161 Mon Sep 17 00:00:00 2001 From: Darren Eberly Date: Wed, 18 Sep 2024 01:39:38 -0400 Subject: [PATCH] Non gtnh recipes (#36) * Change GTNH integration module to use dreamcraft instead of gregtech * Re-enable default update template recipe --- .../minecraft/storagedrawers/core/ModRecipes.java | 12 ++++++++++-- .../integration/GTNHIntegrationModule.java | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java b/src/main/java/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java index 4dd8a06..9dcea3b 100644 --- a/src/main/java/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java +++ b/src/main/java/com/jaquadro/minecraft/storagedrawers/core/ModRecipes.java @@ -203,8 +203,16 @@ public class ModRecipes { 'w', "ingotGold")); - // GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.upgradeTemplate, 2), "xxx", "xyx", "xxx", - // 'x', "stickWood", 'y', "drawerBasic")); + GameRegistry.addRecipe( + new ShapedOreRecipe( + new ItemStack(ModItems.upgradeTemplate, 2), + "xxx", + "xyx", + "xxx", + 'x', + "stickWood", + 'y', + "drawerBasic")); if (config.cache.enableStorageUpgrades) { GameRegistry.addRecipe( diff --git a/src/main/java/com/jaquadro/minecraft/storagedrawers/integration/GTNHIntegrationModule.java b/src/main/java/com/jaquadro/minecraft/storagedrawers/integration/GTNHIntegrationModule.java index 7df7abf..7ec98f4 100644 --- a/src/main/java/com/jaquadro/minecraft/storagedrawers/integration/GTNHIntegrationModule.java +++ b/src/main/java/com/jaquadro/minecraft/storagedrawers/integration/GTNHIntegrationModule.java @@ -7,7 +7,7 @@ import cpw.mods.fml.common.Loader; public class GTNHIntegrationModule extends IntegrationModule { - private static final boolean GTNHEnabled = (Loader.isModLoaded("gregtech") + private static final boolean GTNHEnabled = (Loader.isModLoaded("dreamcraft") && StorageDrawers.config.integrationConfig.isGTNHEnabled()); public static boolean isEnabled() {