Skip to content

Commit 163c427

Browse files
committed
remove unused stuff
1 parent 644da66 commit 163c427

3 files changed

Lines changed: 0 additions & 24 deletions

File tree

src/main/kotlin/org/polyfrost/polyweather/client/ClientWeather.kt

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/main/kotlin/org/polyfrost/polyweather/client/ClientWeatherManager.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,14 @@
11
package org.polyfrost.polyweather.client
22

3-
import dev.deftu.omnicore.api.client.world
43
import dev.deftu.omnicore.api.math.OmniMath
54
import org.polyfrost.polyweather.client.realtime.RealWeatherHandler
65
import org.polyfrost.polyweather.util.WeatherType
76

87
object ClientWeatherManager {
9-
private val weatherStorage: WeatherStorage?
10-
get() {
11-
val world = world ?: return null
12-
return world as? WeatherStorage
13-
?: throw IllegalStateException("World does not implement WeatherStorage")
14-
}
15-
168
@JvmStatic val isRainy: Boolean get() = if (PolyWeatherConfig.isIrlWeather) RealWeatherHandler.isRainy else PolyWeatherConfig.weatherType != WeatherType.CLEAR
179
@JvmStatic val isStormy: Boolean get() = if (PolyWeatherConfig.isIrlWeather) RealWeatherHandler.isStormy else PolyWeatherConfig.weatherType == WeatherType.STORM
1810
@JvmStatic val isSnowy: Boolean get() = if (PolyWeatherConfig.isIrlWeather) RealWeatherHandler.isSnowy else PolyWeatherConfig.weatherType == WeatherType.SNOW
1911

20-
@JvmStatic val isActuallyRaining: Boolean get() = weatherStorage?.`polyweather$isRaining`() == true
21-
2212
private val rainStrength: Float get() = if (PolyWeatherConfig.isIrlWeather) RealWeatherHandler.rainStrength else PolyWeatherConfig.rainStrength
2313
private val snowStrength: Float get() = if (PolyWeatherConfig.isIrlWeather) RealWeatherHandler.rainStrength else PolyWeatherConfig.snowStrength
2414
private val stormStrength: Float get() = if (PolyWeatherConfig.isIrlWeather) RealWeatherHandler.thunderStrength else PolyWeatherConfig.thunderStrength

src/main/kotlin/org/polyfrost/polyweather/client/WeatherStorage.kt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)