From a4ca19ff177d42d90e0f2fa42a88228d1cd5f487 Mon Sep 17 00:00:00 2001 From: itsRevela Date: Mon, 23 Mar 2026 11:57:15 -0500 Subject: [PATCH] Add ifdef debug around handle debug options (#1382) --- Minecraft.Client/PlayerConnection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Minecraft.Client/PlayerConnection.cpp b/Minecraft.Client/PlayerConnection.cpp index a2ceba45..43cd8f34 100644 --- a/Minecraft.Client/PlayerConnection.cpp +++ b/Minecraft.Client/PlayerConnection.cpp @@ -1630,8 +1630,10 @@ bool PlayerConnection::isDisconnected() void PlayerConnection::handleDebugOptions(shared_ptr packet) { - //Player player = dynamic_pointer_cast( player->shared_from_this() ); - player->SetDebugOptions(packet->m_uiVal); +#ifdef _DEBUG + // Player player = dynamic_pointer_cast( player->shared_from_this() ); + player->SetDebugOptions(packet->m_uiVal); +#endif } void PlayerConnection::handleCraftItem(shared_ptr packet)