From 533650fdcf0b1be0f42253759dcf046631068ac6 Mon Sep 17 00:00:00 2001 From: seventeenthShulker Date: Sat, 15 Jun 2024 22:50:46 +0100 Subject: [PATCH] Change burning API to check whether weather is actually happening (e.g. hot biomes) --- mods/ENTITIES/mcl_burning/api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mcl_burning/api.lua b/mods/ENTITIES/mcl_burning/api.lua index 56de67a79..c3348e6c4 100644 --- a/mods/ENTITIES/mcl_burning/api.lua +++ b/mods/ENTITIES/mcl_burning/api.lua @@ -14,7 +14,8 @@ function mcl_burning.is_burning(obj) end function mcl_burning.is_affected_by_rain(obj) - return mcl_weather.rain.raining and mcl_weather.is_outdoor(obj:get_pos()) + local pos = obj:get_pos() + return mcl_weather.rain.raining and mcl_weather.is_outdoor(pos) and mcl_weather.has_rain(pos) end function mcl_burning.get_collisionbox(obj, smaller, storage)