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

@ -1464,7 +1464,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
}
public function isInsideOfWater() : bool{
public function isUnderwater() : bool{
$block = $this->level->getBlockAt(Math::floorFloat($this->x), Math::floorFloat($y = ($this->y + $this->getEyeHeight())), Math::floorFloat($this->z));
if($block instanceof Water){