diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 17f4f76..651983d 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -653,7 +653,7 @@ export function fixOldSave( if (oldVersion !== undefined && oldVersion < "0.6") { 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, + (player.layers?.main as typeof main).day.value, 23 ); }