feat: configurable mob spawn caps via server.properties

This commit is contained in:
itsRevela
2026-04-18 09:31:45 -05:00
parent c297b26f36
commit ffdad03aca
5 changed files with 40 additions and 2 deletions
+5
View File
@@ -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;
+2 -1
View File
@@ -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();