mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Correct knockback from explosions (#5161)
This commit is contained in:
@ -195,7 +195,7 @@ class Explosion{
|
||||
}
|
||||
|
||||
$entity->attack($ev);
|
||||
$entity->setMotion($motion->multiply($impact));
|
||||
$entity->setMotion($entity->getMotion()->addVector($motion->multiply($impact)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user