working knockback for players

This commit is contained in:
GameHerobrine 2024-03-05 06:54:02 +03:00
parent 5364718d13
commit 4aa120c3f2
3 changed files with 12 additions and 4 deletions

View file

@ -1984,7 +1984,7 @@ class Player{
}
$this->craftingItems = [];
$this->toCraft = [];
$this->teleport($this->spawnPosition);
$this->teleport($this->spawnPosition, false, false, true, false);
if($this->entity instanceof Entity){
$this->entity->fire = 0;
$this->entity->air = $this->entity->maxAir;