mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-10 16:13:13 +00:00
refactor: decouple minecraft/ from app/ via IGameServices virtual interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "minecraft/util/DebugSettings.h"
|
||||
#include "minecraft/IGameServices.h"
|
||||
#include "MultiPlayerGameMode.h"
|
||||
|
||||
#include <vector>
|
||||
@@ -150,8 +150,8 @@ void MultiPlayerGameMode::startDestroyBlock(int x, int y, int z, int face) {
|
||||
if (t > 0 &&
|
||||
(Tile::tiles[t]->getDestroyProgress(
|
||||
minecraft->player, minecraft->player->level, x, y, z) >= 1
|
||||
// ||(DebugSettings::isOn() &&
|
||||
// DebugSettings::getMask(InputManager.GetPrimaryPad())&(1L<<eDebugSetting_InstantDestroy))
|
||||
// ||(gameServices().debugSettingsOn() &&
|
||||
// gameServices().debugGetMask(InputManager.GetPrimaryPad())&(1L<<eDebugSetting_InstantDestroy))
|
||||
)) {
|
||||
destroyBlock(x, y, z, face);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user