Skip to content

Commit

Permalink
make sure enablement signals fire before netcode's InternalGameTick
Browse files Browse the repository at this point in the history
  • Loading branch information
char committed Jan 31, 2025
1 parent c62e073 commit 6e21b83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,15 @@ export abstract class BaseGame implements ISignalHandler {
}

this.fire(GameTick);
this.fire(GamePostTick);

this.fire(InternalGameTick);
this.fire(GamePostTick);

for (const entity of this.entities) {
entity[internal.entityFireEnabledSignals]();
}

this.fire(InternalGameTick);

// TODO stupid hack. how do I actually get this?
if (this.#needCheckForEditMode) {
if (this.world.children.has("EditEntities")) {
Expand Down

0 comments on commit 6e21b83

Please sign in to comment.