aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PlayerConnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/PlayerConnection.cpp')
-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)