From 2ae75360386a3f5da67e9057b22c022c9ff3ca3c Mon Sep 17 00:00:00 2001 From: seventeenthShulker Date: Sat, 15 Jun 2024 21:12:44 +0100 Subject: [PATCH] Rovers now take damage and teleport away when it is thundering. And fix somewhere else that ignored thunder. --- mods/ENTITIES/mcl_burning/api.lua | 2 +- mods/ENTITIES/mobs_mc/rover.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mcl_burning/api.lua b/mods/ENTITIES/mcl_burning/api.lua index 74c66d5f1..56de67a79 100644 --- a/mods/ENTITIES/mcl_burning/api.lua +++ b/mods/ENTITIES/mcl_burning/api.lua @@ -14,7 +14,7 @@ function mcl_burning.is_burning(obj) end function mcl_burning.is_affected_by_rain(obj) - return mcl_weather.get_weather() == "rain" and mcl_weather.is_outdoor(obj:get_pos()) + return mcl_weather.rain.raining and mcl_weather.is_outdoor(obj:get_pos()) end function mcl_burning.get_collisionbox(obj, smaller, storage) diff --git a/mods/ENTITIES/mobs_mc/rover.lua b/mods/ENTITIES/mobs_mc/rover.lua index d1f21ffd0..57f42559c 100644 --- a/mods/ENTITIES/mobs_mc/rover.lua +++ b/mods/ENTITIES/mobs_mc/rover.lua @@ -157,7 +157,7 @@ mcl_mobs.register_mob("mobs_mc:rover", { local enderpos = self.object:get_pos() local dim = mcl_worlds.pos_to_dimension(enderpos) if dim == "overworld" then - if mcl_weather.state == "rain" or mcl_weather.state == "lightning" then + if mcl_weather.rain.raining then local damage = true local enderpos = self.object:get_pos() enderpos.y = enderpos.y+2.89