generate-block-palette-spec: include blocks with no properties

This commit is contained in:
Dylan K. Taylor 2022-07-03 02:01:28 +01:00
parent a3016abf53
commit 227a481473
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -77,6 +77,7 @@ $reportMap = [];
foreach($palette->getStates() as $entry){
$state = $entry->getStateData();
$name = $state->getName();
$reportMap[$name] ??= [];
foreach($state->getStates() as $propertyName => $value){
if($value instanceof IntTag || $value instanceof StringTag){
$rawValue = $value->getValue();