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/util/DebugSettings.h"
#include "minecraft/IGameServices.h"
#include "MultiPlayerLevel.h"
#include <float.h>
@@ -122,8 +122,8 @@ void MultiPlayerLevel::tick() {
// 4J: Debug setting added to keep it at day time
#if !defined(_FINAL_BUILD)
bool freezeTime =
DebugSettings::isOn() &&
DebugSettings::getMask(InputManager.GetPrimaryPad()) &
gameServices().debugSettingsOn() &&
gameServices().debugGetMask(InputManager.GetPrimaryPad()) &
(1L << eDebugSetting_FreezeTime);
if (!freezeTime)
#endif