13
0
geforkt von Mirrors/Paper

fix portal linking in upgraded chunks (fixes #7419) (#7438)

Dieser Commit ist enthalten in:
Jason Penilla 2022-02-03 12:28:39 -07:00
Ursprung 3cc82403d5
Commit 543fc1df90

Datei anzeigen

@ -968,7 +968,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ },
+ (BlockPos pos) -> {
+ net.minecraft.world.level.chunk.ChunkAccess lowest = this.level.getChunk(pos.getX() >> 4, pos.getZ() >> 4, net.minecraft.world.level.chunk.ChunkStatus.EMPTY);
+ if (!lowest.getStatus().isOrAfter(net.minecraft.world.level.chunk.ChunkStatus.FULL)) {
+ if (!lowest.getStatus().isOrAfter(net.minecraft.world.level.chunk.ChunkStatus.FULL)
+ && (lowest.getBelowZeroRetrogen() == null || !lowest.getBelowZeroRetrogen().targetStatus().isOrAfter(net.minecraft.world.level.chunk.ChunkStatus.HEIGHTMAPS))) {
+ // why would we generate the chunk?
+ return false;
+ }