mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
tools/generate-block-palette-spec: fixed sorting
This commit is contained in:
parent
c6a09e5ed8
commit
c7c20d4d79
@ -40,6 +40,7 @@ use function get_class;
|
|||||||
use function json_encode;
|
use function json_encode;
|
||||||
use function ksort;
|
use function ksort;
|
||||||
use const JSON_PRETTY_PRINT;
|
use const JSON_PRETTY_PRINT;
|
||||||
|
use const SORT_NATURAL;
|
||||||
use const SORT_STRING;
|
use const SORT_STRING;
|
||||||
use const STDERR;
|
use const STDERR;
|
||||||
|
|
||||||
@ -82,7 +83,7 @@ foreach($states as $state){
|
|||||||
|
|
||||||
foreach(Utils::stringifyKeys($reportMap) as $blockName => $propertyList){
|
foreach(Utils::stringifyKeys($reportMap) as $blockName => $propertyList){
|
||||||
foreach(Utils::stringifyKeys($propertyList) as $propertyName => $propertyValues){
|
foreach(Utils::stringifyKeys($propertyList) as $propertyName => $propertyValues){
|
||||||
ksort($reportMap[$blockName][$propertyName]);
|
ksort($propertyValues, SORT_NATURAL);
|
||||||
$reportMap[$blockName][$propertyName] = array_values($propertyValues);
|
$reportMap[$blockName][$propertyName] = array_values($propertyValues);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user