fix: timing

This commit is contained in:
cha0s 2021-04-20 06:26:00 -05:00
parent e1df863c44
commit 0c15cd0f94

View File

@ -146,12 +146,11 @@ export default (latus) => class Collider extends decorate(Trait) {
async pushCollisionTickingPromise(codeOrUri, other, incident) { async pushCollisionTickingPromise(codeOrUri, other, incident) {
const {Script} = latus.get('%resources'); const {Script} = latus.get('%resources');
const script = await Script.load(codeOrUri, { this.entity.addTickingPromise(Script.loadTickingPromise(codeOrUri, {
entity: this.entity, ...this.entity.contextOrDefault,
incident, incident,
other, other,
}); }));
this.entity.addTickingPromise(script.tickingPromise());
} }
releaseAllCollisions() { releaseAllCollisions() {