summaryrefslogtreecommitdiffstats
path: root/src/Mobs/MagmaCube.cpp
diff options
context:
space:
mode:
authormathiascode <mathiascode@users.noreply.github.com>2017-02-15 06:05:24 +0100
committerMattes D <github@xoft.cz>2017-02-15 06:05:24 +0100
commitdae2adde6563bec4b614230992cae6b1ca965b4f (patch)
tree34149ac0340cc394019eb430247d03950b485555 /src/Mobs/MagmaCube.cpp
parentAdded some blocks and items (#3503) (diff)
downloadcuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar
cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.gz
cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.bz2
cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.lz
cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.xz
cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.tar.zst
cuberite-dae2adde6563bec4b614230992cae6b1ca965b4f.zip
Diffstat (limited to 'src/Mobs/MagmaCube.cpp')
-rw-r--r--src/Mobs/MagmaCube.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Mobs/MagmaCube.cpp b/src/Mobs/MagmaCube.cpp
index c5dd0def0..4d70a0291 100644
--- a/src/Mobs/MagmaCube.cpp
+++ b/src/Mobs/MagmaCube.cpp
@@ -7,7 +7,7 @@
cMagmaCube::cMagmaCube(int a_Size) :
- super("MagmaCube", mtMagmaCube, Printf("mob.magmacube.%s", GetSizeName(a_Size).c_str()), Printf("mob.magmacube.%s", GetSizeName(a_Size).c_str()), 0.6 * a_Size, 0.6 * a_Size),
+ super("MagmaCube", mtMagmaCube, Printf("entity.%smagmacube.hurt", GetSizeName(a_Size).c_str()), Printf("entity.%smagmacube.death", GetSizeName(a_Size).c_str()), 0.6 * a_Size, 0.6 * a_Size),
m_Size(a_Size)
{
}
@@ -29,12 +29,9 @@ void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer)
AString cMagmaCube::GetSizeName(int a_Size)
{
- if (a_Size > 1)
+ if (a_Size == 1)
{
- return "big";
- }
- else
- {
- return "small";
+ return "small_";
}
+ return "";
}