chore: typo
This commit is contained in:
parent
a284cd343e
commit
18ec713d7f
|
@ -59,7 +59,7 @@ export class Harmful extends decorate(Trait) {
|
||||||
return this._harmfulSound;
|
return this._harmfulSound;
|
||||||
}
|
}
|
||||||
|
|
||||||
tryHarmfulEntity(entity) {
|
tryHarmingEntity(entity) {
|
||||||
if (this.doesNotHarmEntity(entity)) {
|
if (this.doesNotHarmEntity(entity)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ export class Harmful extends decorate(Trait) {
|
||||||
const listeners = {};
|
const listeners = {};
|
||||||
if (AVOCADO_SERVER) {
|
if (AVOCADO_SERVER) {
|
||||||
listeners.collisionStart = (other) => {
|
listeners.collisionStart = (other) => {
|
||||||
this.tryHarmfulEntity(other);
|
this.tryHarmingEntity(other);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return listeners;
|
return listeners;
|
||||||
|
@ -173,7 +173,7 @@ export class Harmful extends decorate(Trait) {
|
||||||
if (this.entity.is('collider')) {
|
if (this.entity.is('collider')) {
|
||||||
const isCollidingWith = this.entity.isCollidingWith;
|
const isCollidingWith = this.entity.isCollidingWith;
|
||||||
for (let i = 0; i < isCollidingWith.length; i++) {
|
for (let i = 0; i < isCollidingWith.length; i++) {
|
||||||
this.tryHarmfulEntity(isCollidingWith[i]);
|
this.tryHarmingEntity(isCollidingWith[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user