Skip to content

Commit 9fd005a

Browse files
committed
final
1 parent c0a3f49 commit 9fd005a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mixins/java/org/spongepowered/common/mixin/core/server/level/PlayerSpawnFinderMixin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,17 @@ private void scheduleNext() {
9797
return;
9898
}
9999

100-
scheduleCandidate(this.spawnSuggestion.getX(), this.spawnSuggestion.getZ(), i, () -> Optional.of(PlayerSpawnFinderMixin.fixupSpawnHeight(this.level, this.spawnSuggestion)));
100+
scheduleCandidate(this.spawnSuggestion.getX(), this.spawnSuggestion.getZ(), i, () -> Optional.of(fixupSpawnHeight(this.level, this.spawnSuggestion)));
101101
}
102102

103103
private boolean scheduleCandidate(final int x, final int z, final int index, final Supplier<Optional<Vec3>> supplier) {
104-
int chunkX = SectionPos.blockToSectionCoord(x);
105-
int chunkZ = SectionPos.blockToSectionCoord(z);
104+
final int chunkX = SectionPos.blockToSectionCoord(x);
105+
final int chunkZ = SectionPos.blockToSectionCoord(z);
106106
final CompletableFuture<?> future = this.level.getChunkSource().addTicketAndLoadWithRadius(TicketType.SPAWN_SEARCH, new ChunkPos(chunkX, chunkZ), 0);
107107
final MinecraftServer server = this.level.getServer();
108108

109109
// We exit either the loop or the recursion, depending on what happens first.
110-
AtomicBoolean exit = new AtomicBoolean(true);
110+
final AtomicBoolean exit = new AtomicBoolean(true);
111111

112112
future.whenCompleteAsync((chunk, error) -> {
113113
if (error == null) {

0 commit comments

Comments
 (0)