mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
SubChunkIteratorManager: assert type of subchunk to make PHPStan happy
we know this should be a SubChunk, even though it doesn't.
This commit is contained in:
@ -71,7 +71,9 @@ class SubChunkIteratorManager{
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->currentSubChunk = $this->currentChunk->getSubChunk($y >> 4);
|
||||
$newSubChunk = $this->currentChunk->getSubChunk($y >> 4);
|
||||
assert($newSubChunk instanceof SubChunk, "chunk inside valid bounds should always be a SubChunk instance");
|
||||
$this->currentSubChunk = $newSubChunk;
|
||||
if($this->onSubChunkChangeFunc !== null){
|
||||
($this->onSubChunkChangeFunc)();
|
||||
}
|
||||
|
Reference in New Issue
Block a user