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
|
end
|
||||||
|
|
||||||
function mcl_weather.pos_has_weather(pos)
|
function mcl_weather.pos_has_weather(pos)
|
||||||
if not mcl_weather.is_outdoor(pos) or mcl_weather.is_underwater(pos) then
|
if mcl_weather.is_outdoor(pos) and not mcl_weather.is_underwater(pos) then
|
||||||
return false
|
return true
|
||||||
end
|
end
|
||||||
return true
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
function mcl_weather.add_sound(name,sound)
|
function mcl_weather.add_sound(name,sound)
|
||||||
|
|
Loading…
Reference in New Issue