mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-25 12:54:03 +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){
|
||||
$state = $entry->getStateData();
|
||||
$name = $state->getName();
|
||||
$reportMap[$name] ??= [];
|
||||
foreach($state->getStates() as $propertyName => $value){
|
||||
if($value instanceof IntTag || $value instanceof StringTag){
|
||||
$rawValue = $value->getValue();
|
||||
|
Loading…
x
Reference in New Issue
Block a user