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