forked from Mineclonia/Mineclonia
refactor pos_has_weather
This commit is contained in:
parent
2c372684ce
commit
c6d9ac9b89
|
@ -75,10 +75,10 @@ function mcl_weather.is_underwater(ppos)
|
|||
end
|
||||
|
||||
function mcl_weather.pos_has_weather(pos)
|
||||
if not mcl_weather.is_outdoor(pos) or mcl_weather.is_underwater(pos) then
|
||||
return false
|
||||
end
|
||||
if mcl_weather.is_outdoor(pos) and not mcl_weather.is_underwater(pos) then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function mcl_weather.add_sound(name,sound)
|
||||
|
|
Loading…
Reference in New Issue