fix various issues

This commit is contained in:
2026-07-20 01:23:59 +02:00
parent 85a96a6678
commit 36bb227fd3
7 changed files with 125 additions and 85 deletions
@@ -153,7 +153,9 @@ public class AdaptiveMobsEvents {
return;
}
Entity entity = event.getEntity();
if (AMConfig.enabled && entity instanceof Mob mob && mob instanceof Enemy && AMConfig.isMobEnabled(mob.getType())) {
// Install dormant, config-gated goals on every supported hostile so a later config reload
// can enable them without requiring the entity to unload and join again.
if (entity instanceof Mob mob && mob instanceof Enemy) {
AdaptiveGoalInjector.inject(mob, level, AdaptiveDifficultyManager.getMobTier(level, mob.getType()));
}
if (AMConfig.enabled && AMConfig.ENABLE_SOUND_INVESTIGATION_AI.get()