mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-24 12:50:05 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user