refactor: decouple minecraft/ from app/ via IGameServices virtual interface

This commit is contained in:
MatthewBeshay
2026-04-06 16:14:25 +10:00
committed by Tropical
parent 7787015025
commit 5d9bcac156
246 changed files with 1897 additions and 2224 deletions

View File

@@ -1,4 +1,4 @@
#include "minecraft/GameServices.h"
#include "minecraft/IGameServices.h"
#include "AbstractContainerScreen.h"
#include <wchar.h>
@@ -249,7 +249,7 @@ void AbstractContainerScreen::renderTooltip(std::shared_ptr<ItemInstance> item,
}
if (!cleanedLines.empty()) {
lineColors[0] = GameServices::getHTMLColour(item->getRarity()->color);
lineColors[0] = gameServices().getHTMLColour(item->getRarity()->color);
}
renderTooltipInternal(cleanedLines, lineColors, xm, ym);