0
0
Fork 0

Prevent accessing uninitialized mcl_weather from mcl_burning

This commit is contained in:
kay27 2021-03-16 14:05:38 +04:00
parent c1da231f9d
commit cad23bd851
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,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 and mcl_weather.get_weather() == "rain" and mcl_weather.is_outdoor(obj:get_pos())
end
function mcl_burning.get_collisionbox(obj, smaller)