aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client
diff options
context:
space:
mode:
authorSylvessa <225480449+sylvessa@users.noreply.github.com>2026-03-22 12:38:35 -0500
committerGitHub <noreply@github.com>2026-03-22 13:38:35 -0400
commitdac073605fdf13a5837e4329b56799d4c1c9b68c (patch)
tree638b60406f0e467f4b1acbd456c7fdb71473bf9e /Minecraft.Client
parentbe7e2ca91d7013ac6b4a9b2333ebf008fd5b7f10 (diff)
add ifdef debug around handle debug options (#1382)
Diffstat (limited to 'Minecraft.Client')
-rw-r--r--Minecraft.Client/PlayerConnection.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Minecraft.Client/PlayerConnection.cpp b/Minecraft.Client/PlayerConnection.cpp
index 6319b660..1fb7c398 100644
--- a/Minecraft.Client/PlayerConnection.cpp
+++ b/Minecraft.Client/PlayerConnection.cpp
@@ -1631,8 +1631,10 @@ bool PlayerConnection::isDisconnected()
void PlayerConnection::handleDebugOptions(shared_ptr<DebugOptionsPacket> packet)
{
- //Player player = dynamic_pointer_cast<Player>( player->shared_from_this() );
- player->SetDebugOptions(packet->m_uiVal);
+#ifdef _DEBUG
+ // Player player = dynamic_pointer_cast<Player>( player->shared_from_this() );
+ player->SetDebugOptions(packet->m_uiVal);
+#endif
}
void PlayerConnection::handleCraftItem(shared_ptr<CraftItemPacket> packet)