Trying to replace pointers with references :v

This commit is contained in:
Kolyah35
2026-04-04 14:33:56 +03:00
parent 7418263193
commit 12f5013ddb
126 changed files with 1343 additions and 2068 deletions

View File

@@ -1,7 +1,7 @@
#include "ChooseLevelScreen.hpp"
#include <algorithm>
#include <set>
#include "client/Minecraft.hpp"
#include <MinecraftClient.hpp>
void ChooseLevelScreen::init() {
loadLevelSource();
@@ -9,7 +9,7 @@ void ChooseLevelScreen::init() {
void ChooseLevelScreen::loadLevelSource()
{
LevelStorageSource* levelSource = minecraft->getLevelSource();
LevelStorageSource* levelSource = minecraft.getLevelSource();
levelSource->getLevelList(levels);
std::sort(levels.begin(), levels.end());
}