chore: typo

This commit is contained in:
cha0s 2019-12-24 18:24:09 -06:00
parent a284cd343e
commit 18ec713d7f

View File

@ -59,7 +59,7 @@ export class Harmful extends decorate(Trait) {
return this._harmfulSound;
}
tryHarmfulEntity(entity) {
tryHarmingEntity(entity) {
if (this.doesNotHarmEntity(entity)) {
return;
}
@ -114,7 +114,7 @@ export class Harmful extends decorate(Trait) {
const listeners = {};
if (AVOCADO_SERVER) {
listeners.collisionStart = (other) => {
this.tryHarmfulEntity(other);
this.tryHarmingEntity(other);
};
}
return listeners;
@ -173,7 +173,7 @@ export class Harmful extends decorate(Trait) {
if (this.entity.is('collider')) {
const isCollidingWith = this.entity.isCollidingWith;
for (let i = 0; i < isCollidingWith.length; i++) {
this.tryHarmfulEntity(isCollidingWith[i]);
this.tryHarmingEntity(isCollidingWith[i]);
}
}
}