mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
fixed freeAllChunks
This commit is contained in:
parent
cef28d2c38
commit
c4b03ce13c
3 changed files with 19 additions and 28 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue