Correct knockback from explosions (#5161)

This commit is contained in:
IvanCraft623 2022-09-28 15:09:07 -05:00 committed by GitHub
parent 22486dd75e
commit fc56c041f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ class Explosion{
}
$entity->attack($ev);
$entity->setMotion($motion->multiply($impact));
$entity->setMotion($entity->getMotion()->addVector($motion->multiply($impact)));
}
}