Skip to content

Commit

Permalink
revert of "fix system context setting"
Browse files Browse the repository at this point in the history
  • Loading branch information
minecrawler committed Apr 11, 2024
1 parent 94a9259 commit ba8a8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/world/runtime/runtime-world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit ba8a8fa

Please sign in to comment.