mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Fix chunks not being updated client-side when Level->setChunk()
is called (#328)
Fixes half-trees, probably fixes #265
This commit is contained in:
parent
2a4fb93a92
commit
595fffc432
@ -3602,19 +3602,23 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
}
|
||||
|
||||
public function onChunkChanged(Chunk $chunk){
|
||||
$this->loadQueue[Level::chunkHash($chunk->getX(), $chunk->getZ())] = abs(($this->x >> 4) - $chunk->getX()) + abs(($this->z >> 4) - $chunk->getZ());
|
||||
unset($this->usedChunks[Level::chunkHash($chunk->getX(), $chunk->getZ())]);
|
||||
}
|
||||
|
||||
public function onChunkLoaded(Chunk $chunk){
|
||||
|
||||
}
|
||||
|
||||
public function onChunkPopulated(Chunk $chunk){
|
||||
|
||||
}
|
||||
|
||||
public function onChunkUnloaded(Chunk $chunk){
|
||||
|
||||
}
|
||||
|
||||
public function onBlockChanged(Vector3 $block){
|
||||
|
||||
}
|
||||
|
||||
public function getLoaderId(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user