mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-22 09:39:38 +00:00
Nature's Compass compat
This commit is contained in:
5 files changed
+30
No files matched your search
@@ -14,6 +14,7 @@ This mod also contains patches for the following mods:
|
||||
- DragonAPI
|
||||
- GalactiCraft
|
||||
- More Fun Quicksand Mod
|
||||
- Nature's Compass
|
||||
- Realistic Terrain Generation
|
||||
- Underground Biomes Constructs
|
||||
- WorldEdit
|
||||
|
||||
@@ -17,5 +17,6 @@ dependencies {
|
||||
compile("curse.maven:atg-228356:2231155") // 0.12.0
|
||||
compile(deobfMaven(curseMaven, "curse.maven:biomesoplenty-220318:2499612")) // 2.1.0.2308
|
||||
compile(deobfMaven(curseMaven, "curse.maven:rtg-237989:2521557")) // 1.1.1.7
|
||||
compile(deobfMaven(curseMaven, "curse.maven:naturescompass-252848:2451823")) // 1.3.1
|
||||
compileOnly(files("lib/GalacticraftCore-1.7-3.0.12.504-deobf.jar"))
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.naturescompass;
|
||||
|
||||
import com.chaosthedude.naturescompass.util.BiomeUtils;
|
||||
import com.falsepattern.endlessids.PlaceholderBiome;
|
||||
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.callback.CallbackInfoReturnable;
|
||||
|
||||
import net.minecraft.world.biome.BiomeGenBase;
|
||||
|
||||
@Mixin(value = BiomeUtils.class,
|
||||
remap = false)
|
||||
public abstract class BiomeUtilsMixin {
|
||||
@Inject(method = "biomeIsBlacklisted",
|
||||
at = @At("HEAD"),
|
||||
cancellable = true,
|
||||
require = 1)
|
||||
private static void blockPlaceholders(BiomeGenBase biome, CallbackInfoReturnable<Boolean> cir) {
|
||||
if (biome instanceof PlaceholderBiome) {
|
||||
cir.setReturnValue(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,6 +94,9 @@ public enum Mixin implements IMixin {
|
||||
MFQMDataWatcherMixin(Side.COMMON, require(TargetedMod.MFQM).and(condition(() -> IEConfig.extendDataWatcher)),
|
||||
"mfqm.MFQMDataWatcherMixin"),
|
||||
//endregion MFQM->common
|
||||
//region NaturesCompass->common
|
||||
NaturesCompassBiomeUtilsMixin(Side.COMMON, require(TargetedMod.NATURESCOMPASS), "naturescompass.BiomeUtilsMixin"),
|
||||
//endregion NaturesCompass->common
|
||||
//region RTG->common
|
||||
RTGChunkProviderRTGMixin(Side.COMMON, require(TargetedMod.RTG), "rtg.ChunkProviderRTGMixin"),
|
||||
RTGLandscapeGeneratorMixin(Side.COMMON, require(TargetedMod.RTG), "rtg.LandscapeGeneratorMixin"),
|
||||
|
||||
@@ -18,6 +18,7 @@ public enum TargetedMod implements ITargetedMod {
|
||||
DRAGONAPI("DragonAPI", false, startsWith("dragonapi")),
|
||||
GALACTICRAFTCORE("GalactiCraftCore", false, startsWith("galacticraftcore")),
|
||||
MFQM("More Fun Quicksand Mod", false, startsWith("morefunquicksandmod-")),
|
||||
NATURESCOMPASS("Nature's Compass", true, startsWith("naturescompass")),
|
||||
RTG("Realistic Terrain Generation", true, startsWith("rtg-")),
|
||||
UBC("Underground Biomes Constructs", false, startsWith("undergroundbiomesconstructs-")),
|
||||
WORLDEDIT("WorldEdit", false, startsWith("worldedit-")),
|
||||
|
||||
Reference in new issue
Block a user