mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Stop hardcoding chunk dimensions everywhere (#4443)
This commit is contained in:
2
src/network/mcpe/cache/ChunkCache.php
vendored
2
src/network/mcpe/cache/ChunkCache.php
vendored
@ -193,7 +193,7 @@ class ChunkCache implements ChunkListener{
|
||||
public function onBlockChanged(Vector3 $block) : void{
|
||||
//FIXME: requesters will still receive this chunk after it's been dropped, but we can't mark this for a simple
|
||||
//sync here because it can spam the worker pool
|
||||
$this->destroy($block->getFloorX() >> 4, $block->getFloorZ() >> 4);
|
||||
$this->destroy($block->getFloorX() >> Chunk::COORD_BIT_SIZE, $block->getFloorZ() >> Chunk::COORD_BIT_SIZE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user