Fix weapon checking on auto design stuff when it is disabled.

This commit is contained in:
Ottermandias 2023-09-29 01:39:16 +02:00
parent 6e59ad0f1a
commit 291613f775

View file

@ -66,7 +66,7 @@ public class AutoDesignApplier : IDisposable
private void OnWeaponLoading(Actor actor, EquipSlot slot, Ref<CharacterWeapon> weapon) private void OnWeaponLoading(Actor actor, EquipSlot slot, Ref<CharacterWeapon> weapon)
{ {
if (_jobChangeState == null) if (_jobChangeState == null || !_config.EnableAutoDesigns)
return; return;
var id = actor.GetIdentifier(_actors.AwaitedService); var id = actor.GetIdentifier(_actors.AwaitedService);