summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-01 11:56:47 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-01 11:56:47 +0100
commit77064aa486822be1ba593e171725c811e6987981 (patch)
treed55e4fb8d15aedc31c6fe605cd8637f24e91624f /source/World.cpp
parentPickups no longer crash clients. (diff)
downloadcuberite-77064aa486822be1ba593e171725c811e6987981.tar
cuberite-77064aa486822be1ba593e171725c811e6987981.tar.gz
cuberite-77064aa486822be1ba593e171725c811e6987981.tar.bz2
cuberite-77064aa486822be1ba593e171725c811e6987981.tar.lz
cuberite-77064aa486822be1ba593e171725c811e6987981.tar.xz
cuberite-77064aa486822be1ba593e171725c811e6987981.tar.zst
cuberite-77064aa486822be1ba593e171725c811e6987981.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index bd77b7f5f..198f32395 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -23,6 +23,7 @@
#include "Simulator/RedstoneSimulator.h"
// Mobs:
+#include "Mobs/Bat.h"
#include "Mobs/Blaze.h"
#include "Mobs/Cavespider.h"
#include "Mobs/Chicken.h"
@@ -41,6 +42,7 @@
#include "Mobs/Spider.h"
#include "Mobs/Squid.h"
#include "Mobs/Villager.h"
+#include "Mobs/Witch.h"
#include "Mobs/Wolf.h"
#include "Mobs/Zombie.h"
#include "Mobs/Zombiepigman.h"
@@ -2196,6 +2198,7 @@ int cWorld::SpawnMob(double a_PosX, double a_PosY, double a_PosZ, int a_EntityTy
switch (a_EntityType)
{
+ case E_ENTITY_TYPE_BAT: Monster = new cBat(); break;
case E_ENTITY_TYPE_BLAZE: Monster = new cBlaze(); break;
case E_ENTITY_TYPE_CAVE_SPIDER: Monster = new cCavespider(); break;
case E_ENTITY_TYPE_CHICKEN: Monster = new cChicken(); break;
@@ -2214,6 +2217,7 @@ int cWorld::SpawnMob(double a_PosX, double a_PosY, double a_PosZ, int a_EntityTy
case E_ENTITY_TYPE_SPIDER: Monster = new cSpider(); break;
case E_ENTITY_TYPE_SQUID: Monster = new cSquid(); break;
case E_ENTITY_TYPE_VILLAGER: Monster = new cVillager(); break;
+ case E_ENTITY_TYPE_WITCH: Monster = new cWitch(); break;
case E_ENTITY_TYPE_WOLF: Monster = new cWolf(); break;
case E_ENTITY_TYPE_ZOMBIE: Monster = new cZombie(); break;
case E_ENTITY_TYPE_ZOMBIE_PIGMAN: Monster = new cZombiepigman(); break;