Entity: Rename isInsideOfWater() to isUnderwater()

This commit is contained in:
Dylan K. Taylor
2018-05-19 18:10:43 +01:00
parent 6111ce7df1
commit adb9390b53
5 changed files with 6 additions and 6 deletions

View File

@ -686,7 +686,7 @@ abstract class Living extends Entity implements Damageable{
* @return bool
*/
public function canBreathe() : bool{
return $this->hasEffect(Effect::WATER_BREATHING) or !$this->isInsideOfWater();
return $this->hasEffect(Effect::WATER_BREATHING) or !$this->isUnderwater();
}
/**