mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Entity: Rename isInsideOfWater() to isUnderwater()
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user