summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2017-09-01 13:04:50 +0200
committerMattes D <github@xoft.cz>2017-09-01 13:04:50 +0200
commit496c337cdfa593654018c171f6a74c28272265b5 (patch)
treefab48316d8fd6de97500ca1b8c8c5792eb578acc /src/MobSpawner.h
parentUpdate Core plugin (diff)
downloadcuberite-496c337cdfa593654018c171f6a74c28272265b5.tar
cuberite-496c337cdfa593654018c171f6a74c28272265b5.tar.gz
cuberite-496c337cdfa593654018c171f6a74c28272265b5.tar.bz2
cuberite-496c337cdfa593654018c171f6a74c28272265b5.tar.lz
cuberite-496c337cdfa593654018c171f6a74c28272265b5.tar.xz
cuberite-496c337cdfa593654018c171f6a74c28272265b5.tar.zst
cuberite-496c337cdfa593654018c171f6a74c28272265b5.zip
Diffstat (limited to 'src/MobSpawner.h')
-rw-r--r--src/MobSpawner.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/MobSpawner.h b/src/MobSpawner.h
index 14c721ae3..c396637d5 100644
--- a/src/MobSpawner.h
+++ b/src/MobSpawner.h
@@ -37,8 +37,10 @@ public :
// return true if there is at least one allowed type
bool CanSpawnAnything(void);
- typedef const std::set<std::unique_ptr<cMonster>> tSpawnedContainer;
- tSpawnedContainer & getSpawned(void);
+ std::vector<std::unique_ptr<cMonster>> & getSpawned(void)
+ {
+ return m_Spawned;
+ }
/** Returns true if specified type of mob can spawn on specified block */
static bool CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, eMonsterType a_MobType, EMCSBiome a_Biome);
@@ -55,7 +57,7 @@ protected :
std::set<eMonsterType> m_AllowedTypes;
bool m_NewPack;
eMonsterType m_MobType;
- std::set<std::unique_ptr<cMonster>> m_Spawned;
+ std::vector<std::unique_ptr<cMonster>> m_Spawned;
} ;