split server #3

This commit is contained in:
Sen 2025-05-03 23:14:58 +02:00
parent 8f8abfa0d3
commit 19f3813338
6 changed files with 83 additions and 5 deletions

View file

@ -96,6 +96,7 @@ import game.packet.SPacketMessage;
import game.packet.SPacketMultiBlockChange;
import game.packet.SPacketPlayerPosLook;
import game.packet.SPacketRespawn;
import game.packet.SPacketServerTick;
import game.packet.SPacketSetExperience;
import game.packet.SPacketSkin;
import game.packet.SPacketSpawnMob;
@ -927,6 +928,12 @@ public class ClientPlayer extends NetHandler
this.gameController.setTicked(packetIn.getServerinfo());
}
public void handleServerTick(SPacketServerTick packet)
{
NetHandler.checkThread(packet, this, this.gameController);
this.gameController.setLastTick(packet.getTime());
}
// public void handleCompass(SPacketCompass packetIn)
// {
// NetHandler.checkThread(packetIn, this, this.gameController, this.clientWorldController);