summaryrefslogtreecommitdiff
path: root/src/engine/systems/Grid.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/systems/Grid.ts')
-rw-r--r--src/engine/systems/Grid.ts3
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>(