summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-07 17:09:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-07 17:09:05 +0200
commita3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d (patch)
tree555f8bc01382a32af53f112c7ac016073c8cef61 /source/World.cpp
parentAdded StringUtils functions to Lua API; added StripColorCodes(); ChatLog now strips color codes from logged messages. (diff)
downloadcuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.gz
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.bz2
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.lz
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.xz
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.zst
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 53c60bb69..b632fe7f9 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -2354,6 +2354,7 @@ int cWorld::SpawnMob(double a_PosX, double a_PosY, double a_PosZ, int a_EntityTy
}
}
Monster->SetPosition(a_PosX, a_PosY, a_PosZ);
+ Monster->SetHealth(Monster->GetMaxHealth());
Monster->Initialize(this);
BroadcastSpawnEntity(*Monster);
return Monster->GetUniqueID();