diff --git a/main/hyperspace_controller.gd b/main/hyperspace_controller.gd index fe02d3c7..0d46d2ac 100644 --- a/main/hyperspace_controller.gd +++ b/main/hyperspace_controller.gd @@ -39,7 +39,8 @@ func _ready() -> void: func set_jump_destination(destination: StarSystem) -> void: assert(current_system != destination, "Current system should not be the same as the jump destination") - assert(destination.name in current_system.connections, "Jump destination should be connected to the current system") + assert(destination == null or destination.name in current_system.connections, "Jump destination should be connected to the current system") + if destination == jump_destination: return