Get Forge 1.18 working

This commit is contained in:
Mike Primm 2021-12-02 00:28:41 -06:00
parent 98cfe350d5
commit ebdab5e706
3 changed files with 106 additions and 4 deletions

View file

@ -327,7 +327,10 @@ public class MapChunkCache118 extends AbstractMapChunkCache {
int b = bdata != null ? bdata.a(j) : 0;
cursect.biomes[j] = b < bpalette.size() ? BiomeMap.byBiomeName(bpalette.j(b)).getBiomeID() : -1;
}
lastsectwithbiome = cursect;
// Favor the Y=64 version
if ((secnum == 4) || (lastsectwithbiome == null)) {
lastsectwithbiome = cursect;
}
}
}
/* Get biome data */