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