File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
common/src/main/java/org/embeddedt/modernfix/searchtree
forge/src/main/java/org/embeddedt/modernfix/forge/mixin/core Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 33import net .minecraft .client .searchtree .RefreshableSearchTree ;
44import net .minecraft .world .item .ItemStack ;
55import org .embeddedt .modernfix .core .ModernFixMixinPlugin ;
6+ import org .embeddedt .modernfix .core .config .Option ;
67
78import java .util .ArrayList ;
89import java .util .List ;
@@ -15,7 +16,8 @@ public static synchronized Provider getSearchTreeProvider() {
1516 if (p .canUse ())
1617 return p ;
1718 }
18- if (ModernFixMixinPlugin .instance .config .getEffectiveOptionForMixin ("mixin.perf.blast_search_trees.Registry" ).isOverridden ())
19+ Option option = ModernFixMixinPlugin .instance .config .getEffectiveOptionForMixin ("perf.blast_search_trees.Registry" );
20+ if (option != null && option .isOverridden ())
1921 return DummySearchTree .PROVIDER ;
2022 else
2123 return null ;
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ private static void doModernFixBootstrap(CallbackInfo ci) {
2828 /* for https://github.com/MinecraftForge/MinecraftForge/issues/9505 */
2929 @ Inject (method = "bootStrap" , at = @ At ("RETURN" ))
3030 private static void doClassloadHack (CallbackInfo ci ) {
31- if (!isBootstrapped ) {
32- NetworkConstants .init ();
33- LOGGER .info ("Worked around Forge issue #9505" );
34- }
31+ NetworkConstants .init ();
3532 }
3633}
You can’t perform that action at this time.
0 commit comments