Don't validate chunk before it's been run through DataConverter (#7907)
This commit is contained in:
parent
c6f937f660
commit
44548b8544
1 changed files with 6 additions and 6 deletions
|
|
@ -1487,12 +1487,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ if (!ChunkMap.isChunkDataValid(chunkData.chunkData)) {
|
|
||||||
+ LOGGER.error("Chunk file at {} is missing level data, skipping", new ChunkPos(this.chunkX, this.chunkZ));
|
|
||||||
+ this.complete(ChunkLoadTask.createEmptyHolder());
|
|
||||||
+ return;
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ final ChunkPos chunkPos = new ChunkPos(this.chunkX, this.chunkZ);
|
+ final ChunkPos chunkPos = new ChunkPos(this.chunkX, this.chunkZ);
|
||||||
+
|
+
|
||||||
+ final ChunkMap chunkManager = this.world.getChunkSource().chunkMap;
|
+ final ChunkMap chunkManager = this.world.getChunkSource().chunkMap;
|
||||||
|
|
@ -1511,6 +1505,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
|
+ if (!ChunkMap.isChunkDataValid(chunkData.chunkData)) {
|
||||||
|
+ LOGGER.error("Chunk file at {} is missing level data, skipping", new ChunkPos(this.chunkX, this.chunkZ));
|
||||||
|
+ this.complete(ChunkLoadTask.createEmptyHolder());
|
||||||
|
+ return;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
+ if (this.checkCancelled()) {
|
+ if (this.checkCancelled()) {
|
||||||
+ return;
|
+ return;
|
||||||
+ }
|
+ }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue