diff --git a/targets/minecraft/client/multiplayer/ClientConnection.cpp b/targets/minecraft/client/multiplayer/ClientConnection.cpp index ea16096e3..e28f0cee7 100644 --- a/targets/minecraft/client/multiplayer/ClientConnection.cpp +++ b/targets/minecraft/client/multiplayer/ClientConnection.cpp @@ -1318,20 +1318,7 @@ void ClientConnection::handleTileUpdate( void ClientConnection::handleDisconnect( std::shared_ptr packet) { -#if defined(__linux__) - // Linux fix: On local host connections, ignore DisconnectPacket. The - // singleplayer internal server should never disconnect itself. If we see - // this, it's likely stream desync reading garbage data as a - // DisconnectPacket. - if (connection && connection->getSocket() && - connection->getSocket()->isLocal()) { - fprintf(stderr, - "[CONN] Ignoring DisconnectPacket on local connection " - "(reason=%d)\n", - packet->reason); - return; - } -#endif + connection->close(DisconnectPacket::eDisconnect_Kicked); done = true; diff --git a/targets/minecraft/client/renderer/LevelRenderer.h b/targets/minecraft/client/renderer/LevelRenderer.h index a2939c342..aa5baa062 100644 --- a/targets/minecraft/client/renderer/LevelRenderer.h +++ b/targets/minecraft/client/renderer/LevelRenderer.h @@ -17,9 +17,6 @@ class ItemInstance; class LivingEntity; class Player; class ResourceLocation; -#if !defined(__linux__) -#include -#endif #include #include