Fix exclusive abyssal weathers items (#1794)

This commit is contained in:
blitzmann
2018-12-01 23:01:13 -05:00
parent 194c159379
commit d404d10bfe
3 changed files with 15 additions and 7 deletions

View File

@@ -28,11 +28,12 @@ class FitAddProjectedEnvCommand(wx.Command):
# todo: thing to check for existing environmental effects
self.old_item = fit.projectedModules.makeRoom(module)
module.state = State.ONLINE
fit.projectedModules.append(module)
if module.isExclusiveSystemEffect:
# if this is an exclusive system effect, we need to cache the old one. We make room for the new one here, which returns the old one
self.old_item = fit.projectedModules.makeRoom(module)
fit.projectedModules.append(module)
eos.db.commit()
self.new_index = fit.projectedModules.index(module)
return True