refactor pos_has_weather

This commit is contained in:
cora 2021-09-26 03:44:06 +02:00
parent 2c372684ce
commit c6d9ac9b89
1 changed files with 3 additions and 3 deletions

View File

@ -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
if mcl_weather.is_outdoor(pos) and not mcl_weather.is_underwater(pos) then
return true
end
return true
return false
end
function mcl_weather.add_sound(name,sound)