Fix undoing of drone removal
This commit is contained in:
@@ -195,6 +195,7 @@ class HandledModuleList(HandledList):
|
||||
|
||||
|
||||
class HandledDroneCargoList(HandledList):
|
||||
|
||||
def find(self, item):
|
||||
for o in self:
|
||||
if o.item == item:
|
||||
@@ -210,6 +211,12 @@ class HandledDroneCargoList(HandledList):
|
||||
if thing.isInvalid:
|
||||
self.remove(thing)
|
||||
|
||||
def insert(self, idx, thing):
|
||||
HandledList.insert(self, idx, thing)
|
||||
|
||||
if thing.isInvalid:
|
||||
self.remove(thing)
|
||||
|
||||
|
||||
class HandledImplantList(HandledList):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user