aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/GT_Mod.java
diff options
context:
space:
mode:
authorboubou19 <miisterunknown@gmail.com>2024-08-22 09:08:45 +0200
committerGitHub <noreply@github.com>2024-08-22 07:08:45 +0000
commita9dfc0fe81a0b89ea51d6cdfd1a3a960f1e2cc14 (patch)
tree97f10aacc92352cd7e71ecb70b0088c3282028f0 /src/main/java/gregtech/GT_Mod.java
parentb22db6288809a012bcc7d39c768662d4198ec370 (diff)
downloadGT5-Unofficial-a9dfc0fe81a0b89ea51d6cdfd1a3a960f1e2cc14.tar.gz
GT5-Unofficial-a9dfc0fe81a0b89ea51d6cdfd1a3a960f1e2cc14.tar.bz2
GT5-Unofficial-a9dfc0fe81a0b89ea51d6cdfd1a3a960f1e2cc14.zip
avoid item oredict and allocation spam (#2937)
* avoid item oredict and allocation spam * Spotless apply for branch fix/comparison_spam for #2937 (#2938) spotlessApply Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/GT_Mod.java')
-rw-r--r--src/main/java/gregtech/GT_Mod.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java
index 1f9180fc16..d66ac29f4c 100644
--- a/src/main/java/gregtech/GT_Mod.java
+++ b/src/main/java/gregtech/GT_Mod.java
@@ -5,6 +5,7 @@ import static gregtech.GT_Version.VERSION_MINOR;
import static gregtech.GT_Version.VERSION_PATCH;
import static gregtech.api.GregTech_API.registerCircuitProgrammer;
import static gregtech.api.enums.Mods.Forestry;
+import static gregtech.api.util.GT_Recipe.setItemStacks;
import java.io.PrintWriter;
import java.io.StringWriter;
@@ -277,6 +278,9 @@ public class GT_Mod implements IGT_Mod {
new GT_SonictronLoader().run();
new GT_SpawnEventHandler();
+ // populate itemstack instance for NBT check in GT_Recipe
+ setItemStacks();
+
GT_PreLoad.sortToTheEnd();
GregTech_API.sPreloadFinished = true;
GT_Log.out.println("GT_Mod: Preload-Phase finished!");