mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 00:39:45 +00:00
Merge commit '07cb603231d143314c2bb69d6e3ee0dc281523a0'
This commit is contained in:
commit
47ceb7fee2
@ -131,6 +131,9 @@ abstract class Liquid extends Transparent{
|
||||
return !$this->falling and $this->decay === 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getFluidHeightPercent(){
|
||||
return (($this->falling ? 0 : $this->decay) + 1) / 9;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user