Skip to content

Commit

Permalink
Merge branch 'main' of github.com:missionpinball/mpf-gmc
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Jan 2, 2025
2 parents 5aced84 + 483bd58 commit 733bed7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/mpf-gmc/scripts/bcp_server.gd
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ func send_event(event_name: String, bounceback: bool = true) -> void:
func send_event_with_args(event_name: String, args: Dictionary, bounceback: bool = true) -> void:
if not args or args.is_empty():
return self.send_event(event_name)
if args.has("name"):
self.log.warning("'name' is a reserved key in send_event_with_args(). Arg value '%s' will be discarded.", args['name'])
var event_string = _bcp_parse.encode_event_args(event_name, args)
_send("trigger?%s" % event_string)
if bounceback:
Expand Down

0 comments on commit 733bed7

Please sign in to comment.