From 3103b0974f88b122dab36202cd8638d8d1733146 Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 8 Dec 2023 19:36:24 +0100 Subject: [PATCH] working Date --- public_html/js/class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/js/class.js b/public_html/js/class.js index b8ba393..76316bd 100644 --- a/public_html/js/class.js +++ b/public_html/js/class.js @@ -218,7 +218,7 @@ class Car Update() { - if(this.tick==0 && Date.getSeconds()%20==this.spawn) { + if(this.tick==0 && new Date.getSeconds()%20==this.spawn) { this.tick=1; } this.ChangeDirection();