aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2019-11-02 22:59:33 +0100
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2019-11-02 22:59:33 +0100
commit2984c33702931b585d41df5e7022995fc0f795dd (patch)
treeda68ea19ab96e7488719b4766f018e6f2b426098 /src/main/java
parent25644b38b3f1063d98abcb9fa1770b0223c0015e (diff)
downloadGT5-Unofficial-2984c33702931b585d41df5e7022995fc0f795dd.tar.gz
GT5-Unofficial-2984c33702931b585d41df5e7022995fc0f795dd.tar.bz2
GT5-Unofficial-2984c33702931b585d41df5e7022995fc0f795dd.zip
added runnable for adding own veins
+updated gt Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/bloodasp/galacticgreg/GalacticGreg.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/bloodasp/galacticgreg/GalacticGreg.java b/src/main/java/bloodasp/galacticgreg/GalacticGreg.java
index d51b9dcf6a..82a41fd17c 100644
--- a/src/main/java/bloodasp/galacticgreg/GalacticGreg.java
+++ b/src/main/java/bloodasp/galacticgreg/GalacticGreg.java
@@ -64,6 +64,8 @@ public class GalacticGreg {
// GalacticGregRegistry.registerModContainer(ModRegisterer.Setup_GalactiCraftCore());
// }
+ public static final ArrayList<Runnable> ADDITIONALVEINREGISTER = new ArrayList<Runnable>();
+
/**
* Postload phase. Mods can add their custom definition to our api in their own PreLoad or Init-phase
* Once GalacticGregRegistry.InitRegistry() is called, no changes are accepted.
@@ -88,8 +90,19 @@ public class GalacticGreg {
new BW_Worldgen_Ore_SmallOre_Space("small.custom." + (f < 10 ? "0" : "") + f, GregTech_API.sWorldgenFile.get("worldgen.GaGregBartworks." + "small.custom." + (f < 10 ? "0" : "") + f, "Enabled", false));
}
}
+
+ for (Runnable r : ADDITIONALVEINREGISTER){
+ try{
+ r.run();
+ }catch (Exception e){
+ e.printStackTrace();
+ }
+ }
+
GalacticConfig.serverPostInit();
-
+
+
+
Logger.trace("Leaving POSTLOAD");
}