mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-11-24 09:50:17 +00:00
LCEMP v1.1.0, bugfixes, multithreading server, local leaderboard, performance fixes, and more
This commit is contained in:
1 parent
fadeee4192
commit
7e7668c7fa
88 files changed
+4825
-634
No files matched your search
@@ -8,6 +8,9 @@
|
||||
#include "../Minecraft.World/Socket.h"
|
||||
#include "../Minecraft.World/net.minecraft.world.level.h"
|
||||
#include "MultiPlayerLevel.h"
|
||||
#ifdef WITH_SERVER_CODE
|
||||
#include "../Minecraft.Server/Core/ServerThreadPool.h"
|
||||
#endif
|
||||
|
||||
ServerConnection::ServerConnection(MinecraftServer *server)
|
||||
{
|
||||
@@ -98,16 +101,12 @@ void ServerConnection::tick()
|
||||
{
|
||||
serverPlayer->doChunkSendingTick(false);
|
||||
}
|
||||
// try { // 4J - removed try/catch
|
||||
player->tick();
|
||||
// } catch (Exception e) {
|
||||
// logger.log(Level.WARNING, "Failed to handle packet: " + e, e);
|
||||
// player.disconnect("Internal server error");
|
||||
// }
|
||||
if (player->done)
|
||||
{
|
||||
players.erase(players.begin()+i);
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
player->connection->flush();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user