Fix insert for boosters as well

This commit is contained in:
DarkPhoenix
2019-04-20 19:31:44 +03:00
parent edc1ef0e38
commit 327ad78eb8
2 changed files with 1 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ class HandledBoosterList(HandledList):
HandledList.insert(self, idx, booster)
self.remove(booster)
raise HandledListActionError(booster)
HandledList.append(self, booster)
HandledList.insert(self, idx, booster)
def makeRoom(self, booster):
# if needed, remove booster that was occupying slot

View File

@@ -894,7 +894,6 @@ class Module(HandledItem, HandledCharge, ItemAttrShortcut, ChargeAttrShortcut):
@staticmethod
def getProposedState(mod, click, proposedState=None):
# todo: instead of passing in module, make this a instanced function.
pyfalog.debug("Get proposed state for module.")
if mod.slot == FittingSlot.SUBSYSTEM or mod.isEmpty:
return FittingModuleState.ONLINE