bad water damage fix

This commit is contained in:
GameHerobrine 2023-07-12 21:50:53 +03:00
parent 5723f88cba
commit 274fd6456a

View file

@ -468,6 +468,13 @@ class Entity extends Position
$hasUpdate = true;
}
break;
default:
if($this->inBlock(new Vector3($x, $y, $z), 0.7) and $y == $endY and !StaticBlock::getIsTransparent($id) and ($this->class === ENTITY_MOB or $this->class === ENTITY_PLAYER)){}
elseif($x == ($endX - 1) and $y == $endY and $z == ($endZ - 1)){
$this->air = 200;
}
break;
}
}
}