0
0
Fork 0

Change burning API to check whether weather is actually happening (e.g. hot biomes)

This commit is contained in:
seventeenthShulker 2024-06-15 22:50:46 +01:00
parent 945a98f9e9
commit ea6e65e459
1 changed files with 2 additions and 1 deletions

View File

@ -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)