mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-12 04:57:31 +00:00
Biomes O' Plenty startup crash fix (#73)
This commit is contained in:
2 files changed
+26
No files matched your search
@@ -0,0 +1,25 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.bop;
|
||||
|
||||
import biomesoplenty.common.core.BOPBiomes;
|
||||
import biomesoplenty.common.world.BOPBiomeManager;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Overwrite;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
|
||||
@Mixin(value = BOPBiomes.class,
|
||||
remap = false)
|
||||
public abstract class BOPBiomesMixin {
|
||||
/**
|
||||
* @author FalsePattern
|
||||
* @reason Suppress NPE
|
||||
*/
|
||||
@Overwrite
|
||||
private static void disableRiver(BiomeGenBase biome) {
|
||||
try {
|
||||
BOPBiomeManager.overworldRiverBiomes[biome.biomeID] = biome;
|
||||
} catch (Throwable t) {
|
||||
t.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -81,6 +81,7 @@ public enum Mixin implements IMixin {
|
||||
//endregion AntiIDConflict->common
|
||||
//region BoP->common
|
||||
BOPBiomeManagerMixin(Side.COMMON, require(TargetedMod.BOP), "bop.BOPBiomeManagerMixin"),
|
||||
BOPBiomesMixin(Side.COMMON, require(TargetedMod.BOP), "bop.BOPBiomesMixin"),
|
||||
//endregion BoP->common
|
||||
//region BiomeTweaker->common
|
||||
BiomeEventHandlerMixin(Side.COMMON, require(TargetedMod.BIOMETWEAKER), "biometweaker.BiomeEventHandlerMixin"),
|
||||
|
||||
Reference in new issue
Block a user