mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 05:15:13 +00:00
Add more output to consistency check script
this helps catching state mapping bugs.
This commit is contained in:
parent
6fe366e1ac
commit
2ae09f635b
@ -42,6 +42,8 @@ foreach($old as $k => $name){
|
|||||||
foreach($new as $k => $name){
|
foreach($new as $k => $name){
|
||||||
if(!isset($old[$k])){
|
if(!isset($old[$k])){
|
||||||
echo "Added state for $name (" . ($k >> 4) . ":" . ($k & 0xf) . ")\n";
|
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(
|
file_put_contents(__DIR__ . '/block_factory_consistency_check.json', json_encode(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user