mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-18 03:44:54 -04:00
stop rain: also stop thunder
This commit is contained in:
parent
e26cf8c5d7
commit
199d8abe2a
@ -15,6 +15,7 @@ package de.bixilon.minosoft.data.registries.other.game.event.handlers.rain
|
||||
|
||||
import de.bixilon.minosoft.data.registries.ResourceLocation
|
||||
import de.bixilon.minosoft.data.registries.other.game.event.handlers.GameEventHandler
|
||||
import de.bixilon.minosoft.data.world.weather.WorldWeather
|
||||
import de.bixilon.minosoft.protocol.network.connection.play.PlayConnection
|
||||
import de.bixilon.minosoft.util.KUtil.toResourceLocation
|
||||
|
||||
@ -22,6 +23,6 @@ object RainStopGameEventHandler : GameEventHandler {
|
||||
override val RESOURCE_LOCATION: ResourceLocation = "minecraft:rain_stop".toResourceLocation()
|
||||
|
||||
override fun handle(data: Float, connection: PlayConnection) {
|
||||
connection.world.weather = connection.world.weather.copy(rain = 0.0f)
|
||||
connection.world.weather = WorldWeather(0.0f, 0.0f)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user