Update base.py

This commit is contained in:
Richard Bronkhorst 2023-06-26 20:50:29 +02:00
parent 9b9a149e3f
commit 9d124179bf

View File

@ -224,6 +224,8 @@ class BaseMission(Mission):
self.api.dock(self.ship) self.api.dock(self.ship)
def step_refuel(self): def step_refuel(self):
if self.ship.fuel_capacity == 0:
return
if self.ship.fuel_current / self.ship.fuel_capacity < 0.5: if self.ship.fuel_current / self.ship.fuel_capacity < 0.5:
try: try:
self.api.refuel(self.ship) self.api.refuel(self.ship)