remove SORT_ASC

This commit is contained in:
Dylan K. Taylor 2022-02-04 00:27:09 +00:00
parent 4d88f8f7f4
commit 9fbb2ef46a
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -28,7 +28,6 @@ use pocketmine\nbt\tag\CompoundTag;
use pocketmine\nbt\tag\Tag;
use pocketmine\utils\Utils;
use function ksort;
use const SORT_ASC;
use const SORT_NUMERIC;
final class BlockStateUpgrader{
@ -40,8 +39,8 @@ final class BlockStateUpgrader{
throw new \InvalidArgumentException("Another schema already has this priority");
}
$this->upgradeSchemas[$schema->getVersionId()][$priority] = $schema;
ksort($this->upgradeSchemas, SORT_NUMERIC | SORT_ASC);
ksort($this->upgradeSchemas[$schema->getVersionId()], SORT_NUMERIC | SORT_ASC);
ksort($this->upgradeSchemas, SORT_NUMERIC);
ksort($this->upgradeSchemas[$schema->getVersionId()], SORT_NUMERIC);
}
public function upgrade(BlockStateData $blockStateData) : BlockStateData{