Skip to content

Commit

Permalink
chore: rename spawnpoint finding thread to a better name
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Oct 28, 2024
1 parent 024ec3c commit 4b12eda
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected void checkFirstTick() {
// Shouldn't block world tick poll here, otherwise there will be a deadlock because
// Dimension#findSuitableGroundPosAround() -wait-> Dimension#getBlockState() -wait-> ChunkService#getOrLoadChunkSync()
// -wait-> WorldGenerator#generateChunk(), and WorldGenerator should be ticked in order to generate chunk normally
Thread.ofVirtual().name("World " + worldData.getName() + " Spawn Point Finding Thread").start(() -> {
Thread.ofVirtual().name("World Spawn Point Finding Thread - " + worldData.getName()).start(() -> {
if (!isSafeStandingPos(new Position3i(worldData.getSpawnPoint(), getOverWorld()))) {
var newSpawnPoint = getOverWorld().findSuitableGroundPosAround(this::isSafeStandingPos, 0, 0, 32);
if (newSpawnPoint == null) {
Expand Down

0 comments on commit 4b12eda

Please sign in to comment.