Merge commit '07cb603231d143314c2bb69d6e3ee0dc281523a0'

This commit is contained in:
Dylan K. Taylor 2020-01-18 18:19:13 +00:00
commit 47ceb7fee2

View File

@ -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;
}