Browse Source

[breaking] `$location` gets updated in `setup.navigationOverride`

Stephan Fuchs 6 tháng trước cách đây
mục cha
commit
1d7094c4c0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      sugarcube/src/events/_system/NavigationOverride.ts

+ 1 - 0
sugarcube/src/events/_system/NavigationOverride.ts

@@ -11,6 +11,7 @@ setup.navigationOverride = (destinationPassageName:string)=>{
 		!requestedLocation.tags.includesAny(tagsWithEventsDisabled)
 	){
 		State.variables.eventReturnLocation = requestedLocation;
+		State.variables.location.locationIdentifier = requestedLocation;
 		return 'event';
 	}
 }