mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 08:39:53 +00:00
fix phpstan
This commit is contained in:
parent
4430f6c5fd
commit
2f2ffe0aa4
@ -64,8 +64,6 @@ final class BlockStateUpgradeSchema{
|
|||||||
*/
|
*/
|
||||||
public array $remappedStates = [];
|
public array $remappedStates = [];
|
||||||
|
|
||||||
private ?bool $backwardsCompatible = null;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public int $maxVersionMajor,
|
public int $maxVersionMajor,
|
||||||
public int $maxVersionMinor,
|
public int $maxVersionMinor,
|
||||||
|
@ -52,7 +52,7 @@ class BlockStateUpgraderTest extends TestCase{
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function getNewSchemaVersion(int $versionId) : BlockStateUpgradeSchema{
|
private function getNewSchemaVersion(int $versionId) : BlockStateUpgradeSchema{
|
||||||
$schema = new BlockStateUpgradeSchema(($versionId >> 24) & 0xff, ($versionId >> 16) & 0xff, ($versionId >> 8) & 0xff, $versionId & 0xff);
|
$schema = new BlockStateUpgradeSchema(($versionId >> 24) & 0xff, ($versionId >> 16) & 0xff, ($versionId >> 8) & 0xff, $versionId & 0xff, 0);
|
||||||
$this->upgrader->addSchema($schema);
|
$this->upgrader->addSchema($schema);
|
||||||
return $schema;
|
return $schema;
|
||||||
}
|
}
|
||||||
|
@ -208,7 +208,8 @@ function generateBlockStateUpgradeSchema(array $upgradeTable) : BlockStateUpgrad
|
|||||||
($foundVersion >> 24) & 0xff,
|
($foundVersion >> 24) & 0xff,
|
||||||
($foundVersion >> 16) & 0xff,
|
($foundVersion >> 16) & 0xff,
|
||||||
($foundVersion >> 8) & 0xff,
|
($foundVersion >> 8) & 0xff,
|
||||||
($foundVersion & 0xff)
|
($foundVersion & 0xff),
|
||||||
|
0
|
||||||
);
|
);
|
||||||
foreach(Utils::stringifyKeys($upgradeTable) as $oldName => $blockStateMappings){
|
foreach(Utils::stringifyKeys($upgradeTable) as $oldName => $blockStateMappings){
|
||||||
$newNameFound = [];
|
$newNameFound = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user