fix: timing
This commit is contained in:
parent
ac0d61fd05
commit
0423c0dbe1
|
@ -71,12 +71,11 @@ export default (latus) => class Harmful extends decorate(Trait) {
|
|||
const listeners = {
|
||||
harming: async (harm, harmed) => {
|
||||
const {Script} = latus.get('%resources');
|
||||
const script = await Script.load(this.params.harmingScript, {
|
||||
entity: this.entity,
|
||||
this.entity.addTickingPromise(Script.loadTickingPromise(this.params.harmingScript, {
|
||||
...this.entity.contextOrDefault,
|
||||
harm,
|
||||
harmed,
|
||||
});
|
||||
this.entity.addTickingPromise(script.tickingPromise());
|
||||
}));
|
||||
},
|
||||
};
|
||||
return listeners;
|
||||
|
|
Loading…
Reference in New Issue
Block a user