mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
swimming tweaks, fall damage tweaks
This commit is contained in:
parent
6b68b88572
commit
db8b221c02
5 changed files with 34 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue