Sfoglia il codice sorgente

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

Stephan Fuchs 8 mesi fa
parent
commit
1d7094c4c0
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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';
 	}
 }