feat: configurable mob spawn caps via server.properties
This commit is contained in:
@@ -58,6 +58,11 @@ int MobCategory::getMaxInstancesPerLevel() // 4J added
|
||||
return m_maxPerLevel;
|
||||
}
|
||||
|
||||
void MobCategory::setMaxInstancesPerLevel(int max)
|
||||
{
|
||||
m_maxPerLevel = max;
|
||||
}
|
||||
|
||||
Material *MobCategory::getSpawnPositionMaterial()
|
||||
{
|
||||
return (Material *) spawnPositionMaterial;
|
||||
|
||||
@@ -65,7 +65,7 @@ public:
|
||||
|
||||
private:
|
||||
const int m_max;
|
||||
const int m_maxPerLevel;
|
||||
int m_maxPerLevel;
|
||||
const Material *spawnPositionMaterial;
|
||||
const bool m_isFriendly;
|
||||
const bool m_isPersistent;
|
||||
@@ -79,6 +79,7 @@ public:
|
||||
const eINSTANCEOF getEnumBaseClass(); // 4J added
|
||||
int getMaxInstancesPerChunk();
|
||||
int getMaxInstancesPerLevel(); // 4J added
|
||||
void setMaxInstancesPerLevel(int max); // 4J added
|
||||
Material *getSpawnPositionMaterial();
|
||||
bool isFriendly();
|
||||
bool isSingleType();
|
||||
|
||||
Reference in New Issue
Block a user