From 199d8abe2a9f0218683b70f23455a086c2dd854b Mon Sep 17 00:00:00 2001 From: Bixilon Date: Mon, 7 Nov 2022 19:19:24 +0100 Subject: [PATCH] stop rain: also stop thunder --- .../other/game/event/handlers/rain/RainStopGameEventHandler.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/bixilon/minosoft/data/registries/other/game/event/handlers/rain/RainStopGameEventHandler.kt b/src/main/java/de/bixilon/minosoft/data/registries/other/game/event/handlers/rain/RainStopGameEventHandler.kt index a55d5a386..55caccb2a 100644 --- a/src/main/java/de/bixilon/minosoft/data/registries/other/game/event/handlers/rain/RainStopGameEventHandler.kt +++ b/src/main/java/de/bixilon/minosoft/data/registries/other/game/event/handlers/rain/RainStopGameEventHandler.kt @@ -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) } }