mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-25 21:04:06 +00:00
generate-block-palette-spec: include blocks with no properties
This commit is contained in:
parent
a3016abf53
commit
227a481473
@ -77,6 +77,7 @@ $reportMap = [];
|
|||||||
foreach($palette->getStates() as $entry){
|
foreach($palette->getStates() as $entry){
|
||||||
$state = $entry->getStateData();
|
$state = $entry->getStateData();
|
||||||
$name = $state->getName();
|
$name = $state->getName();
|
||||||
|
$reportMap[$name] ??= [];
|
||||||
foreach($state->getStates() as $propertyName => $value){
|
foreach($state->getStates() as $propertyName => $value){
|
||||||
if($value instanceof IntTag || $value instanceof StringTag){
|
if($value instanceof IntTag || $value instanceof StringTag){
|
||||||
$rawValue = $value->getValue();
|
$rawValue = $value->getValue();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user