diff --git a/CHANGELOG.md b/CHANGELOG.md index be03d0e8..93733a40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ); ``` +### Fixed + +- Fixed a bug where args were not being passed to global `trigger()` - @lajbel + ## [3001.0.9] - 2025-01-15 ### Added diff --git a/src/events/globalEvents.ts b/src/events/globalEvents.ts index 45565571..42b5cdf5 100644 --- a/src/events/globalEvents.ts +++ b/src/events/globalEvents.ts @@ -36,7 +36,7 @@ export function on( export const trigger = (event: string, tag: string, ...args: any[]) => { for (const obj of _k.game.root.children) { if (obj.is(tag)) { - obj.trigger(event); + obj.trigger(event, args); } } };