mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-12 06:07:31 +00:00
scatter the default biome IDs a bit, should avoid some more conflicts.
This commit is contained in:
2 files changed
+21
No files matched your search
+7
@@ -10,6 +10,13 @@ import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
||||
@Mixin(value = BOPBiomeManager.class,
|
||||
remap = false)
|
||||
public abstract class BOPBiomeManagerMixin {
|
||||
@ModifyConstant(method = "<clinit>",
|
||||
constant = @Constant(intValue = 40),
|
||||
require = 1)
|
||||
private static int shiftBiomeIDsUp(int id) {
|
||||
return id + 14000;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "getNextFreeBiomeId",
|
||||
constant = @Constant(intValue = VanillaConstants.biomeIDCount),
|
||||
require = 1)
|
||||
|
||||
+14
@@ -47,6 +47,20 @@ public abstract class ModBiomesMixin {
|
||||
@Shadow
|
||||
public static int savannahSubSteppeID;
|
||||
|
||||
@ModifyConstant(method = "<clinit>",
|
||||
constant = {@Constant(intValue = 100),
|
||||
@Constant(intValue = 101),
|
||||
@Constant(intValue = 102),
|
||||
@Constant(intValue = 103),
|
||||
@Constant(intValue = 104),
|
||||
@Constant(intValue = 105),
|
||||
@Constant(intValue = 106),
|
||||
@Constant(intValue = 107)},
|
||||
require = 8)
|
||||
private static int shiftBiomeIDsUp(int id) {
|
||||
return id + 13000;
|
||||
}
|
||||
|
||||
@ModifyConstant(method = "init",
|
||||
constant = @Constant(intValue = 128),
|
||||
require = 1)
|
||||
|
||||
Reference in new issue
Block a user