summaryrefslogtreecommitdiffstats
path: root/src/Mobs/SnowGolem.cpp
diff options
context:
space:
mode:
author12xx12 <44411062+12xx12@users.noreply.github.com>2020-09-17 20:06:41 +0200
committerGitHub <noreply@github.com>2020-09-17 20:06:41 +0200
commitba5312c198a7bb31b26fba57a966f16f07de1c90 (patch)
tree6d85b1ffa1059d83018c2d2b65c5e57b952b2b36 /src/Mobs/SnowGolem.cpp
parentBlockHandler: no dynamic allocation (#4862) (diff)
downloadcuberite-ba5312c198a7bb31b26fba57a966f16f07de1c90.tar
cuberite-ba5312c198a7bb31b26fba57a966f16f07de1c90.tar.gz
cuberite-ba5312c198a7bb31b26fba57a966f16f07de1c90.tar.bz2
cuberite-ba5312c198a7bb31b26fba57a966f16f07de1c90.tar.lz
cuberite-ba5312c198a7bb31b26fba57a966f16f07de1c90.tar.xz
cuberite-ba5312c198a7bb31b26fba57a966f16f07de1c90.tar.zst
cuberite-ba5312c198a7bb31b26fba57a966f16f07de1c90.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/SnowGolem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/SnowGolem.cpp b/src/Mobs/SnowGolem.cpp
index 2e6d5ea09..93c29cafb 100644
--- a/src/Mobs/SnowGolem.cpp
+++ b/src/Mobs/SnowGolem.cpp
@@ -38,7 +38,7 @@ void cSnowGolem::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
}
if (IsBiomeNoDownfall(m_World->GetBiomeAt(POSX_TOINT, POSZ_TOINT)))
{
- TakeDamage(*this);
+ TakeDamage(dtEnvironment, nullptr, GetRawDamageAgainst(*this), GetKnockbackAmountAgainst(*this));
}
else
{