fixed freeAllChunks

This commit is contained in:
GameHerobrine 2023-12-09 20:53:07 +03:00
parent cef28d2c38
commit c4b03ce13c
3 changed files with 19 additions and 28 deletions

View file

@ -569,6 +569,7 @@ class Player{
$z = $Z << 4;
$this->level->useChunk($X, $Z, $this);
$this->chunksLoaded["$X:$Z"] = true;
$pk = new FullChunkDataPacket;
$pk->chunkX = $X;
$pk->chunkZ = $Z;
@ -1132,16 +1133,6 @@ class Player{
if(isset($this->received[$p->messageIndex])){
continue;
}
switch($p->pid()){
case 0x01:
case ProtocolInfo::PING_PACKET:
case ProtocolInfo::PONG_PACKET:
case ProtocolInfo::MOVE_PLAYER_PACKET:
case ProtocolInfo::REQUEST_CHUNK_PACKET:
case ProtocolInfo::ANIMATE_PACKET:
case ProtocolInfo::SET_HEALTH_PACKET:
break;
}
}
$this->received[$p->messageIndex] = true;
}