add that thing

This commit is contained in:
MihailRis
2025-11-18 18:41:21 +03:00
parent 957f9f5998
commit 922a86d2b0
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -163,7 +163,11 @@ bool ChunksController::buildLights(
return false;
}
#include "util/timeutil.hpp"
void ChunksController::createChunk(const Player& player, int x, int z) const {
timeutil::ScopeLogTimer log(111);
if (!player.isLoadingChunks()) {
if (auto chunk = level.chunks->fetch(x, z)) {
player.chunks->putChunk(chunk);