diff options
author | Masy98 <masy@antheruscraft.de> | 2014-12-18 19:30:32 +0100 |
---|---|---|
committer | Masy98 <masy@antheruscraft.de> | 2014-12-18 19:30:32 +0100 |
commit | c836b52dd1b8d6a2999721f235e6c2b6079b266c (patch) | |
tree | ae04bd279e3bddb94119ce0b9f9aed9344f8f140 /src/MobSpawner.cpp | |
parent | Clang needs the libstdc++ that comes with gcc-4.8 (diff) | |
download | cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.gz cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.bz2 cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.lz cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.xz cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.tar.zst cuberite-c836b52dd1b8d6a2999721f235e6c2b6079b266c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/MobSpawner.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MobSpawner.cpp b/src/MobSpawner.cpp index ee9e569a7..bd34d8fcd 100644 --- a/src/MobSpawner.cpp +++ b/src/MobSpawner.cpp @@ -83,6 +83,7 @@ eMonsterType cMobSpawner::ChooseMobType(EMCSBiome a_Biome) addIfAllowed(mtSkeleton, allowedMobs); addIfAllowed(mtCreeper, allowedMobs); addIfAllowed(mtSquid, allowedMobs); + addIfAllowed(mtGuardian, allowedMobs); if ((a_Biome != biDesert) && (a_Biome != biBeach) && (a_Biome != biOcean)) { @@ -144,6 +145,11 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R switch (a_MobType) { + case mtGuardian: + { + return IsBlockWater(TargetBlock) && (a_RelY >= 45) && (a_RelY <= 62); + } + case mtSquid: { return IsBlockWater(TargetBlock) && (a_RelY >= 45) && (a_RelY <= 62); |