mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-09 13:14:54 +00:00
Merge remote-tracking branch 'origin/stable'
# Conflicts: # composer.lock # resources/vanilla # src/pocketmine/Player.php # tests/phpstan/configs/runtime-type-checks.neon
This commit is contained in:
commit
beb6a50883
@ -2365,7 +2365,8 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onChunkChanged(Chunk $chunk) : void{
|
public function onChunkChanged(Chunk $chunk) : void{
|
||||||
if(isset($this->usedChunks[$hash = World::chunkHash($chunk->getX(), $chunk->getZ())])){
|
$status = $this->usedChunks[$hash = World::chunkHash($chunk->getX(), $chunk->getZ())] ?? null;
|
||||||
|
if($status !== null && !$status->equals(UsedChunkStatus::NEEDED())){
|
||||||
$this->usedChunks[$hash] = UsedChunkStatus::NEEDED();
|
$this->usedChunks[$hash] = UsedChunkStatus::NEEDED();
|
||||||
$this->nextChunkOrderRun = 0;
|
$this->nextChunkOrderRun = 0;
|
||||||
}
|
}
|
||||||
|
@ -5,11 +5,6 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/block/BaseBanner.php
|
path: ../../../src/block/BaseBanner.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Call to function assert\\(\\) with bool will always evaluate to true\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/block/tile/TileFactory.php
|
|
||||||
|
|
||||||
-
|
-
|
||||||
message: "#^Instanceof between pocketmine\\\\event\\\\RegisteredListener and pocketmine\\\\event\\\\RegisteredListener will always evaluate to true\\.$#"
|
message: "#^Instanceof between pocketmine\\\\event\\\\RegisteredListener and pocketmine\\\\event\\\\RegisteredListener will always evaluate to true\\.$#"
|
||||||
count: 1
|
count: 1
|
||||||
@ -65,8 +60,3 @@ parameters:
|
|||||||
count: 1
|
count: 1
|
||||||
path: ../../../src/world/World.php
|
path: ../../../src/world/World.php
|
||||||
|
|
||||||
-
|
|
||||||
message: "#^Call to function assert\\(\\) with bool will always evaluate to true\\.$#"
|
|
||||||
count: 1
|
|
||||||
path: ../../../src/world/World.php
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user