diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-03-08 04:56:49 +0000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-03-08 04:56:49 +0000 |
commit | 40644c9f57ce7a931d9d955529583cc1cba623a5 (patch) | |
tree | ad213db533bacc76cef7a07d9874bd21cb87ede4 /src/Java/gtPlusPlus/core/handler | |
parent | 86c8b91b00624c7b1824b6b75290ed383338e48f (diff) | |
download | GT5-Unofficial-40644c9f57ce7a931d9d955529583cc1cba623a5.tar.gz GT5-Unofficial-40644c9f57ce7a931d9d955529583cc1cba623a5.tar.bz2 GT5-Unofficial-40644c9f57ce7a931d9d955529583cc1cba623a5.zip |
+ Added ItemPackage.java. Allows better load control of item/recipe groupings.
$ Improved load handling of Chemistry Packages.
$ Fixed bug in StringUtils.java.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler')
-rw-r--r-- | src/Java/gtPlusPlus/core/handler/COMPAT_HANDLER.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/COMPAT_HANDLER.java b/src/Java/gtPlusPlus/core/handler/COMPAT_HANDLER.java index 1af7c05d64..d8d43ebbd3 100644 --- a/src/Java/gtPlusPlus/core/handler/COMPAT_HANDLER.java +++ b/src/Java/gtPlusPlus/core/handler/COMPAT_HANDLER.java @@ -208,7 +208,9 @@ public class COMPAT_HANDLER { } public static final AutoMap<RunnableWithInfo<String>> mRecipesToGenerate = new AutoMap<RunnableWithInfo<String>>(); - public static final AutoMap<RunnableWithInfo<String>> mGtRecipesToGenerate = new AutoMap<RunnableWithInfo<String>>(); + public static final AutoMap<RunnableWithInfo<String>> mGtRecipesToGenerate = new AutoMap<RunnableWithInfo<String>>(); + + public static final AutoMap<RunnableWithInfo<String>> mObjectsToRunInPostInit = new AutoMap<RunnableWithInfo<String>>(); public static void runQueuedRecipes() { //Add autogenerated Recipes from Item Components @@ -233,4 +235,17 @@ public class COMPAT_HANDLER { } } + + public static void runQueuedMisc() { + for (RunnableWithInfo<String> m : mObjectsToRunInPostInit) { + try { + m.run(); + } + catch (Throwable t) { + t.printStackTrace(); + Logger.INFO("[ERROR] "+m.getInfoData()); + } + + } + } } |