better fall dmg, tweaks to tnt motion, spam remove

This commit is contained in:
GameHerobrine 2024-03-05 04:44:09 +03:00
parent 9ee4b08657
commit f3a0705c66
5 changed files with 8 additions and 8 deletions

View file

@ -26,7 +26,7 @@ abstract class Living extends Entity implements Pathfindable{
//if(self::$despawnMobs) $this->server->schedule(self::$despawnTimer, [$this, "close"]); //900*20
}
public function fall(){
$dmg = floor($this->fallDistance - 3);
$dmg = ceil($this->fallDistance - 3);
if($dmg > 0){
$this->harm($dmg, "fall");
}