Skip to content

Commit 8e2aa56

Browse files
committed
Fix spamming the log with "Update tile packet received..." when opening a world
1 parent 39baa7d commit 8e2aa56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/mekanism/common/util/WorldUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ public static boolean isChunkLoaded(@Nullable LevelReader world, int chunkX, int
9292
if (world == null) {
9393
return false;
9494
} else if (world instanceof LevelAccessor accessor) {
95-
return accessor.hasChunk(chunkX, chunkZ);
95+
if (!(accessor instanceof Level level) || !level.isClientSide) {
96+
return accessor.hasChunk(chunkX, chunkZ);
97+
}
98+
//Don't allow the client level to just return true for all cases, as we actually care if it is present
99+
// and instead use the fallback logic that we have
96100
}
97101
return world.getChunk(chunkX, chunkZ, ChunkStatus.FULL, false) != null;
98102
}

0 commit comments

Comments
 (0)