1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

added clearing every goal acceptor on lock to prevent creating impossible puzzles

This commit is contained in:
Sense101 2021-05-07 11:35:25 +01:00
parent 1dfcc58f09
commit 2c465f9b2c

View File

@ -301,6 +301,10 @@ export class HUDBaseToolbar extends BaseHUDPart {
this.root.map.removeStaticEntity(entity);
entityManager.destroyEntity(entity);
}
const goalComp = entity.components.GoalAcceptor;
if (goalComp) {
goalComp.clear();
}
}
entityManager.processDestroyList();