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:
parent
1dfcc58f09
commit
2c465f9b2c
@ -301,6 +301,10 @@ export class HUDBaseToolbar extends BaseHUDPart {
|
|||||||
this.root.map.removeStaticEntity(entity);
|
this.root.map.removeStaticEntity(entity);
|
||||||
entityManager.destroyEntity(entity);
|
entityManager.destroyEntity(entity);
|
||||||
}
|
}
|
||||||
|
const goalComp = entity.components.GoalAcceptor;
|
||||||
|
if (goalComp) {
|
||||||
|
goalComp.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
entityManager.processDestroyList();
|
entityManager.processDestroyList();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user