module: sending global event requires sender module awareness

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-03-25 11:06:54 -07:00 committed by Stephen Gutekanst
parent 9eac721f24
commit 3661cb8721
4 changed files with 39 additions and 31 deletions

View file

@ -122,6 +122,6 @@ test "example" {
//-------------------------------------------------------------------------
// Send events to modules
world.modules.send(.tick, .{});
world.mod.renderer.sendGlobal(.tick, .{});
try world.dispatch();
}