diff --git a/web/map.js b/web/map.js index 09cf9894..f6d1df73 100644 --- a/web/map.js +++ b/web/map.js @@ -45,8 +45,8 @@ MinecraftClock.prototype = { } this.time = time; this.element - .addClass(time.day ? 'day' : 'night') - .removeClass(time.night ? 'day' : 'night') + .addClass((time.day <= 4) ? 'day' : 'night') + .removeClass((time.day <= 4) ? 'day' : 'night') .text(this.formatTime(time)); if (this.timeout == null) {