Skip to content

Commit

Permalink
Added a check to save if the map changes
Browse files Browse the repository at this point in the history
  • Loading branch information
klingbolt committed Jul 24, 2024
1 parent 477ed2f commit e021216
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Spatial.gd
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ func decode_context_packet(spb: StreamPeerBuffer):
if self.map_id != old_map_id:
print("New Map")
print("Saving Old Map")
if self.unsaved_changes:
save_current_map_data()
print("Loading New Map")
load_waypoint_markers(self.map_id)

Expand Down

0 comments on commit e021216

Please sign in to comment.