aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus
diff options
context:
space:
mode:
authorboubou19 <miisterunknown@gmail.com>2024-09-01 04:49:39 +0200
committerGitHub <noreply@github.com>2024-08-31 22:49:39 -0400
commitf7b56c032947b2fed7d9b521f6f2d221115e08e9 (patch)
tree33a3aa956fe27ebe19692d5e90c54447f5db8f0e /src/main/java/gtPlusPlus
parentb22ab538b762de1fdc83d3a2e45fc21adcab5efd (diff)
downloadGT5-Unofficial-f7b56c032947b2fed7d9b521f6f2d221115e08e9.tar.gz
GT5-Unofficial-f7b56c032947b2fed7d9b521f6f2d221115e08e9.tar.bz2
GT5-Unofficial-f7b56c032947b2fed7d9b521f6f2d221115e08e9.zip
Fix some more gmi calls (#3009)
* strenghten fobidden gmi checks * yeet some hidden gt++ gmi * yeet last gt gmi call * forbidden isModLoaded calls * add other GTNH-I MTE IDs * Spotless apply for branch fix/gmi_calls for #3009 (#3010) spotlessApply Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gtPlusPlus')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java
index 1026f24538..f3d596fb9e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/loaders/recipe/RecipeLoader_TreeFarm.java
@@ -6,6 +6,8 @@ import net.minecraft.item.ItemStack;
import gregtech.api.enums.Mods;
import gregtech.api.util.GT_ModHandler;
+import gtPlusPlus.core.item.chemistry.AgriculturalChem;
+import gtPlusPlus.xmod.bop.blocks.BOP_Block_Registrator;
import gtPlusPlus.xmod.forestry.ForestryTreeHandler;
import gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.production.GregtechMetaTileEntityTreeFarm;
@@ -108,16 +110,16 @@ public class RecipeLoader_TreeFarm {
private static void generateGTPPTrees() {
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Rainforest Oak
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakLog", 3, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockRainforestOakLeaves", 1, 0),
+ new ItemStack(BOP_Block_Registrator.sapling_Rainforest, 1, 0),
+ new ItemStack(BOP_Block_Registrator.log_Rainforest, 3, 0),
+ new ItemStack(BOP_Block_Registrator.leaves_Rainforest, 1, 0),
new ItemStack(Items.apple, 1, 0));
GregtechMetaTileEntityTreeFarm.registerTreeProducts( // Pine
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineSapling", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineLogLog", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "blockPineLeaves", 1, 0),
- GT_ModHandler.getModItem(Mods.GTPlusPlus.ID, "item.BasicAgrichemItem", 1, 24));
+ new ItemStack(BOP_Block_Registrator.sapling_Pine, 1, 0),
+ new ItemStack(BOP_Block_Registrator.log_Pine, 1, 0),
+ new ItemStack(BOP_Block_Registrator.leaves_Pine, 1, 0),
+ new ItemStack(AgriculturalChem.mAgrichemItem1, 1, 24));
}
private static void generateTwilightForestTrees() {