diff --git a/eos/effectHandlerHelpers.py b/eos/effectHandlerHelpers.py index 7f19c4382..75b51715d 100644 --- a/eos/effectHandlerHelpers.py +++ b/eos/effectHandlerHelpers.py @@ -131,14 +131,15 @@ class HandledModuleList(HandledList): self.remove(mod) return - # fix for #529, where a module may be in incorrect state after CCP changes mechanics of module - if not mod.isValidState(mod.state): - mod.state = eos.types.State.ONLINE - mod.position = len(self) HandledList.append(self, mod) if mod.isInvalid: self.remove(mod) + return + + # fix for #529, where a module may be in incorrect state after CCP changes mechanics of module + if not mod.isValidState(mod.state): + mod.state = eos.types.State.ONLINE def insert(self, index, mod): mod.position = index