fix non-integer door numbers

This commit is contained in:
Jörn-Michael Miehe 2023-09-04 20:47:45 +00:00
parent e097e3011e
commit f7754ec901

View file

@ -14,6 +14,6 @@ export class Door {
} }
public set day(day: number) { public set day(day: number) {
this._day = Math.max(day, -1); this._day = Math.max(Math.floor(day), -1);
} }
} }