summaryrefslogtreecommitdiffstats
path: root/src/Physics/Explodinator.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-02-06 19:37:03 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-02-07 23:36:15 +0100
commitbe2bf999c280d6892b38272d3f783b3462f0b745 (patch)
tree6567e7f011e50dd8e6f65f7dd933a1d7dc34ea93 /src/Physics/Explodinator.cpp
parentAdds playerlist header and footer broadcasting (1.8-1.13) (diff)
downloadcuberite-be2bf999c280d6892b38272d3f783b3462f0b745.tar
cuberite-be2bf999c280d6892b38272d3f783b3462f0b745.tar.gz
cuberite-be2bf999c280d6892b38272d3f783b3462f0b745.tar.bz2
cuberite-be2bf999c280d6892b38272d3f783b3462f0b745.tar.lz
cuberite-be2bf999c280d6892b38272d3f783b3462f0b745.tar.xz
cuberite-be2bf999c280d6892b38272d3f783b3462f0b745.tar.zst
cuberite-be2bf999c280d6892b38272d3f783b3462f0b745.zip
Diffstat (limited to '')
-rw-r--r--src/Physics/Explodinator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Physics/Explodinator.cpp b/src/Physics/Explodinator.cpp
index e12b9bd60..8954f66f5 100644
--- a/src/Physics/Explodinator.cpp
+++ b/src/Physics/Explodinator.cpp
@@ -96,11 +96,11 @@ namespace Explodinator
if (Entity.IsPawn())
{
const auto ReducedImpact = Impact - Impact * Entity.GetEnchantmentBlastKnockbackReduction();
- Entity.SetSpeed(Direction.NormalizeCopy() * KnockbackFactor * ReducedImpact);
+ Entity.AddSpeed(Direction.NormalizeCopy() * KnockbackFactor * ReducedImpact);
}
else
{
- Entity.SetSpeed(Direction.NormalizeCopy() * KnockbackFactor * Impact);
+ Entity.AddSpeed(Direction.NormalizeCopy() * KnockbackFactor * Impact);
}
// Continue iteration: