swimming tweaks, fall damage tweaks

This commit is contained in:
GameHerobrine 2023-02-23 20:07:02 +03:00
parent 6b68b88572
commit db8b221c02
5 changed files with 34 additions and 4 deletions

View file

@ -18,4 +18,8 @@ class LiquidBlock extends TransparentBlock{
public function getDrops(Item $item, Player $player){
return array();
}
public function getLiquidHeight(){ //TODO lava,water meta
return (($this->meta >= 8 ? 0 : $this->meta)+1) / 9;
}
}