mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Add more output to consistency check script
this helps catching state mapping bugs.
This commit is contained in:
@ -42,6 +42,8 @@ foreach($old as $k => $name){
|
||||
foreach($new as $k => $name){
|
||||
if(!isset($old[$k])){
|
||||
echo "Added state for $name (" . ($k >> 4) . ":" . ($k & 0xf) . ")\n";
|
||||
}elseif($old[$k] !== $name){
|
||||
echo "Name changed (" . ($k >> 4) . ":" . ($k & 0xf) . "): " . $old[$k] . " -> " . $name . "\n";
|
||||
}
|
||||
}
|
||||
file_put_contents(__DIR__ . '/block_factory_consistency_check.json', json_encode(
|
||||
|
Reference in New Issue
Block a user