Fix final compilation issues
This commit is contained in:
@@ -3222,9 +3222,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ private boolean isLoadedChunkGeneratable(final ChunkAccess chunkAccess) {
|
||||
+ final BelowZeroRetrogen belowZeroRetrogen;
|
||||
+ // see PortalForcer#findPortalAround
|
||||
+ return chunkAccess != null && (
|
||||
+ chunkAccess.getStatus() == ChunkStatus.FULL ||
|
||||
+ ((belowZeroRetrogen = chunkAccess.getBelowZeroRetrogen()) != null && belowZeroRetrogen.targetStatus().isOrAfter(ChunkStatus.FULL))
|
||||
+ ((belowZeroRetrogen = chunkAccess.getBelowZeroRetrogen()) != null && belowZeroRetrogen.targetStatus().isOrAfter(ChunkStatus.SPAWN))
|
||||
+ );
|
||||
+ }
|
||||
+
|
||||
@@ -21194,7 +21195,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ // Paper start - rewrite chunk system
|
||||
+ default ChunkAccess syncLoadNonFull(int chunkX, int chunkZ, ChunkStatus status) {
|
||||
+ if (status == null || status.isOrAfter(ChunkStatus.FULL)) {
|
||||
+ throw new IllegalArgumentException("Status: " + status.getName());
|
||||
+ throw new IllegalArgumentException("Status: " + status.toString());
|
||||
+ }
|
||||
+ return this.getChunk(chunkX, chunkZ, status, true);
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user