Fix crash with disableChunkTerrainGeneration and EndlessIDs#877
Conversation
MalTeeez
left a comment
There was a problem hiding this comment.
I recommend wrinting two mixins across two classes, with one excluding endlessids (the current state) and one requiring it (your change).
Is there a way of detecting the presence of EndlessIDs at runtime and registering the correct mixin? |
|
Ahh I see the |
|
Reposting my questions from (Discord)[https://discord.com/channels/181078474394566657/603348502637969419/1502791599145484318] for context: I added ENDLESSIDS to Hodgepodge's TargetedMod: ENDLESSIDS("endlessids"),However when I try to make registration of DISABLE_CHUNK_TERRAIN_GENERATION(new MixinBuilder()
.addCommonMixins("minecraft.MixinChunkProviderServer_DisableTerrain")
.setApplyIf(() -> TweaksConfig.disableChunkTerrainGeneration)
.addExcludedMod(TargetedMod.ENDLESSIDS)
.setPhase(Phase.EARLY)),I get a If I change the TargetedMod def to ENDLESSIDS("com.falsepattern.endlessids.EndlessIDs", "endlessids")The mod gets registered even with the Clearly I'm misunderstanding how Here's the change as I've been debugging it: konkers@398e94b |
EndlessIDs disallows the suse of `getBiomeArray()` and `setBiomeArray()`. Those calls are replaced with `getBiomeShortArray()` and `.setBiomeShortArray()` From EndlessIDs' `ChunkBiomeHook`. Fixes: GTNewHorizons#876
|
Added EndlessIDs specific version and logic to register the correct mixin |
|
Waiting with squash because @Caedis was asking about server compat |
|
Confirmed to work on daily 507 server |
EndlessIDs disallows the suse of
getBiomeArray()andsetBiomeArray(). Those calls are replaced withgetBiomeShortArray()and.setBiomeShortArray()From EndlessIDs'ChunkBiomeHook.Fixes: #876