Skip to content

Commit

Permalink
fix: $ns2MapName doesn't mean ns2GameMode
Browse files Browse the repository at this point in the history
  • Loading branch information
phroggster committed May 29, 2024
1 parent ec33fc7 commit 6a87ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/variables/map-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const model: ReplaceVariable = {
possibleDataOutput: ["text"],
},
evaluator: async (trigger): Promise<string> => {
return getGameModeFromMapName(trigger.metadata.eventData?.mapName as string)
return trigger.metadata.eventData?.mapName as string
?? ns2Monitor.getMapName()
?? "unknown";
},
Expand Down

0 comments on commit 6a87ba0

Please sign in to comment.