diff options
author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-03-02 19:11:33 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-03-02 19:11:33 -0700 |
commit | 78797aa175651d53df21d3f8d5c51a55649aaced (patch) | |
tree | cd3c5e168e069c5ac2c18514f0f69543d077ec30 /src/engine/systems/Grid.ts | |
parent | 196773c3637f7dcf2a53a6cb9b3a8e8f790cce71 (diff) | |
download | the-abstraction-engine-78797aa175651d53df21d3f8d5c51a55649aaced.tar.gz the-abstraction-engine-78797aa175651d53df21d3f8d5c51a55649aaced.zip |
Diffstat (limited to 'src/engine/systems/Grid.ts')
-rw-r--r-- | src/engine/systems/Grid.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/systems/Grid.ts b/src/engine/systems/Grid.ts index 2eea704..d5436f4 100644 --- a/src/engine/systems/Grid.ts +++ b/src/engine/systems/Grid.ts @@ -54,6 +54,9 @@ export class Grid extends System { if (!entity.hasComponent(ComponentNames.Grid)) { return; } + if (!entity.hasComponent(ComponentNames.Control)) { + return; + } const grid = entity.getComponent<GridComponent>(ComponentNames.Grid)!; const facingDirection = entity.getComponent<FacingDirection>( |