From b43e9f73c8cf7d9884a71e897bddd9446c98f997 Mon Sep 17 00:00:00 2001 From: Sense101 <67970865+Sense101@users.noreply.github.com> Date: Sat, 8 May 2021 22:24:39 +0100 Subject: [PATCH] removed clearing goal acceptors as it isn't needed because of validation --- src/js/game/hud/parts/base_toolbar.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/js/game/hud/parts/base_toolbar.js b/src/js/game/hud/parts/base_toolbar.js index 2c3f2bf9..4abace68 100644 --- a/src/js/game/hud/parts/base_toolbar.js +++ b/src/js/game/hud/parts/base_toolbar.js @@ -301,10 +301,6 @@ export class HUDBaseToolbar extends BaseHUDPart { this.root.map.removeStaticEntity(entity); entityManager.destroyEntity(entity); } - const goalComp = entity.components.GoalAcceptor; - if (goalComp) { - goalComp.clear(); - } } entityManager.processDestroyList();