mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
remove SORT_ASC
This commit is contained in:
parent
4d88f8f7f4
commit
9fbb2ef46a
@ -28,7 +28,6 @@ use pocketmine\nbt\tag\CompoundTag;
|
|||||||
use pocketmine\nbt\tag\Tag;
|
use pocketmine\nbt\tag\Tag;
|
||||||
use pocketmine\utils\Utils;
|
use pocketmine\utils\Utils;
|
||||||
use function ksort;
|
use function ksort;
|
||||||
use const SORT_ASC;
|
|
||||||
use const SORT_NUMERIC;
|
use const SORT_NUMERIC;
|
||||||
|
|
||||||
final class BlockStateUpgrader{
|
final class BlockStateUpgrader{
|
||||||
@ -40,8 +39,8 @@ final class BlockStateUpgrader{
|
|||||||
throw new \InvalidArgumentException("Another schema already has this priority");
|
throw new \InvalidArgumentException("Another schema already has this priority");
|
||||||
}
|
}
|
||||||
$this->upgradeSchemas[$schema->getVersionId()][$priority] = $schema;
|
$this->upgradeSchemas[$schema->getVersionId()][$priority] = $schema;
|
||||||
ksort($this->upgradeSchemas, SORT_NUMERIC | SORT_ASC);
|
ksort($this->upgradeSchemas, SORT_NUMERIC);
|
||||||
ksort($this->upgradeSchemas[$schema->getVersionId()], SORT_NUMERIC | SORT_ASC);
|
ksort($this->upgradeSchemas[$schema->getVersionId()], SORT_NUMERIC);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function upgrade(BlockStateData $blockStateData) : BlockStateData{
|
public function upgrade(BlockStateData $blockStateData) : BlockStateData{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user