Added a config option to disable mob movement and combat.

This will come in handy when gruntwork starts.
Also fixed a bug where the ACCLEVEL setting was read as a boolean.
This commit is contained in:
2020-09-22 20:53:44 +02:00
parent ac1fd1e5be
commit ba5998d53a
4 changed files with 11 additions and 1 deletions

View File

@@ -216,6 +216,10 @@ void MobManager::step(time_t currTime) {
if (!ChunkManager::inPopulatedChunks(x, y))
continue;
// skip mob movement and combat if disabled
if (!settings::SIMULATEMOBS && pair.second->state != MobState::DEAD)
continue;
switch (pair.second->state) {
case MobState::ROAMING:
roamingStep(pair.second, currTime);