From ba8a8fa92eef089d19c4e8e0eb4fa1385b4c0db1 Mon Sep 17 00:00:00 2001 From: Marco Alka Date: Thu, 11 Apr 2024 20:11:41 +0200 Subject: [PATCH] revert of "fix system context setting" --- src/world/runtime/runtime-world.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/runtime/runtime-world.ts b/src/world/runtime/runtime-world.ts index 19d49e7..e869dcf 100644 --- a/src/world/runtime/runtime-world.ts +++ b/src/world/runtime/runtime-world.ts @@ -125,7 +125,6 @@ export class RuntimeWorld implements IRuntimeWorld, IMutableWorld { for (scheduler of this.config.stateSchedulers.values()) { for (system of scheduler.getSystems()) { - system.setRuntimeContext(this); this.systems.add(system); } } @@ -199,6 +198,7 @@ export class RuntimeWorld implements IRuntimeWorld, IMutableWorld { let query, system; for (system of this.config.defaultScheduler.getSystems()) { + system.setRuntimeContext(this); for (query of getQueriesFromSystem(system)) { this.queries.add(query); }