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

@ -93,7 +93,7 @@ class Squid extends WaterAnimal{
$this->swimDirection->y = -0.5;
}
$inWater = $this->isInsideOfWater();
$inWater = $this->isUnderwater();
if(!$inWater){
$this->swimDirection = null;
}elseif($this->swimDirection !== null){
@ -116,7 +116,7 @@ class Squid extends WaterAnimal{
}
protected function applyGravity() : void{
if(!$this->isInsideOfWater()){
if(!$this->isUnderwater()){
parent::applyGravity();
}
}