Extend routing 2

This commit is contained in:
ducdat0507 2022-12-24 19:59:04 +07:00
parent 5f08ae7412
commit 6749919437

View file

@ -653,7 +653,7 @@ export function fixOldSave(
if (oldVersion !== undefined && oldVersion < "0.6") { if (oldVersion !== undefined && oldVersion < "0.6") {
if ((player.layers?.main as typeof main)?.day !== undefined) { if ((player.layers?.main as typeof main)?.day !== undefined) {
(player.layers?.main as typeof main).day.value = Math.min( (player.layers?.main as typeof main).day.value = Math.min(
(player.layers.main as typeof main).day.value, (player.layers?.main as typeof main).day.value,
23 23
); );
} }