refactor: change pointer parameters to references for Level and Content in various classes

This commit is contained in:
MihailRis
2024-12-25 18:53:53 +03:00
parent ef2c0b2370
commit c1b311f3c4
41 changed files with 258 additions and 251 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ LevelController::LevelController(
playerTickClock(20, 3) {
if (clientPlayer) {
chunks->lighting = std::make_unique<Lighting>(
level->content, clientPlayer->chunks.get()
level->content, *clientPlayer->chunks
);
}
blocks = std::make_unique<BlocksController>(