Fix Twilight Forest CME during game startup
This commit is contained in:
parent
ce1462efd1
commit
e8311d0b95
|
|
@ -94,6 +94,7 @@ dependencies {
|
|||
modImplementation("curse.maven:jeresources-240630:3545538")
|
||||
modImplementation("curse.maven:jepb-437558:3172880")
|
||||
modImplementation("curse.maven:babel-436964:3196072")
|
||||
modCompileOnly("curse.maven:twforest-227639:3575220")
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ public class ModernFixEarlyConfig {
|
|||
this.addMixinRule("bugfix.packet_leak", false);
|
||||
this.addMixinRule("bugfix.structure_manager_crash", true);
|
||||
this.addMixinRule("bugfix.mc218112", true);
|
||||
this.addMixinRule("bugfix.tf_cme_on_load", true);
|
||||
this.addMixinRule("perf.async_jei", true);
|
||||
this.addMixinRule("perf.thread_priorities", true);
|
||||
this.addMixinRule("perf.preload_block_classes", false);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
package org.embeddedt.modernfix.mixin.bugfix.tf_cme_on_load;
|
||||
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
import twilightforest.TwilightForestMod;
|
||||
import twilightforest.worldgen.biomes.BiomeKeys;
|
||||
|
||||
@Mixin(TwilightForestMod.class)
|
||||
public class TwilightForestModMixin {
|
||||
@Redirect(method = "init", at = @At(value = "INVOKE", target = "Ltwilightforest/worldgen/biomes/BiomeKeys;addBiomeTypes()V"), remap = false)
|
||||
private static void avoidBiomeTypes() {
|
||||
|
||||
}
|
||||
|
||||
@Inject(method = "lambda$init$1", at = @At(value = "INVOKE", target = "Ltwilightforest/block/TFBlocks;tfCompostables()V", ordinal = 0))
|
||||
private static void doBiomeTypes(CallbackInfo ci) {
|
||||
BiomeKeys.addBiomeTypes();
|
||||
}
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@
|
|||
"mixins": [
|
||||
"bugfix.edge_chunk_not_saved.ChunkManagerMixin",
|
||||
"bugfix.structure_manager_crash.StructureManagerMixin",
|
||||
"bugfix.tf_cme_on_load.TwilightForestModMixin",
|
||||
"perf.remove_biome_temperature_cache.BiomeMixin",
|
||||
"perf.resourcepacks.ModFileResourcePackMixin",
|
||||
"perf.resourcepacks.VanillaPackMixin",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user