From 51ea0c4f31627f322ec978774f3a08ac170e465c Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Sat, 27 Nov 2021 00:09:43 +0300 Subject: [PATCH] Fix another issue with restrictions --- eos/saveddata/module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eos/saveddata/module.py b/eos/saveddata/module.py index d0f34ea18..e97c05f32 100644 --- a/eos/saveddata/module.py +++ b/eos/saveddata/module.py @@ -695,8 +695,8 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut, M return False # Check max group fitted - max = self.getModifiedItemAttr("maxGroupFitted", None) - if max is not None: + max = self.getModifiedItemAttr("maxGroupFitted") + if max: current = 0 # if self.owner != fit else -1 # Disabled, see #1278 for mod in fit.modules: if (mod.item and mod.item.groupID == self.item.groupID and