1
0
forked from noxious/server

Removed unused functions

This commit is contained in:
Dennis Postma 2025-01-24 23:53:03 +01:00
parent a0584c2bb9
commit 8f4d4fc482

View File

@ -66,10 +66,6 @@ class WeatherManager {
await this.saveAndEmitWeather()
}
public cleanup(): void {
this.intervalId && clearInterval(this.intervalId)
}
private async loadWeather(): Promise<void> {
try {
const worldRepository = new WorldRepository()
@ -130,9 +126,7 @@ class WeatherManager {
//the data model still contains the booleans
await world
.setRainPercentage(this.weatherState.rainPercentage)
.setIsRainEnabled(this.weatherState.rainPercentage > 0)
.setFogDensity(this.weatherState.fogDensity)
.setIsFogEnabled(this.weatherState.fogDensity > 0)
.save()
} catch (error) {
this.logError('save', error)