mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-12 04:33:15 +01:00
Change burning API to check whether weather is actually happening (e.g. hot biomes)
This commit is contained in:
parent
b976c535ae
commit
387b6941a9
@ -14,7 +14,8 @@ function mcl_burning.is_burning(obj)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function mcl_burning.is_affected_by_rain(obj)
|
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
|
end
|
||||||
|
|
||||||
function mcl_burning.get_collisionbox(obj, smaller, storage)
|
function mcl_burning.get_collisionbox(obj, smaller, storage)
|
||||||
|
Loading…
Reference in New Issue
Block a user