[Fix] <resedit> Can't jump paths to self.
This commit is contained in:
parent
0d5c77525b
commit
0bc8a4a6d9
@ -721,6 +721,9 @@ class Space:
|
||||
Add or remove jumps from a star system.
|
||||
"""
|
||||
def __jump_add(self, wgt=None, event=None):
|
||||
if self.space_sel == self.cur_system: # Can't add to self.
|
||||
return
|
||||
|
||||
if self.space_sel in self.systems.keys() and self.cur_system in self.systems.keys():
|
||||
self.systems[self.cur_system]["jumps"].append(self.space_sel)
|
||||
self.systems[self.space_sel]["jumps"].append(self.cur_system)
|
||||
|
Loading…
Reference in New Issue
Block a user