chore: typo
This commit is contained in:
parent
a284cd343e
commit
18ec713d7f
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user