Skip to content

Commit a3004ff

Browse files
committed
fixed a typo in thoughtDestroyed
1 parent 8ff9838 commit a3004ff

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/lib/entities/Duck/Duck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export default class Duck extends PhysicsEntity implements ITarget {
165165
}
166166

167167
onThoughtDestroyed(prematurely: boolean) {
168-
this.state.onThoughtDestoyed(prematurely);
168+
this.state.onThoughtDestroyed(prematurely);
169169
}
170170

171171
onReached(reachedBy: Entity) {

src/lib/entities/Duck/states/State.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ export default abstract class State {
5757
/**
5858
* Called by thought bubbles when they get destroyed
5959
*/
60-
onThoughtDestoyed(_prematurely: boolean) {}
60+
onThoughtDestroyed(_prematurely: boolean) {}
6161
}

src/lib/entities/Duck/states/StateIdle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class StateIdle extends State {
8282
}
8383
}
8484

85-
onThoughtDestoyed(): void {
85+
onThoughtDestroyed(): void {
8686
this.duck.currentEmote = null;
8787
}
8888
}

src/lib/entities/Duck/states/StateLastBreadStolen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default class StateLastBreadStolen
115115
}
116116
}
117117

118-
onThoughtDestoyed(prematurely: boolean): void {
118+
onThoughtDestroyed(prematurely: boolean): void {
119119
this.duck.currentEmote = null;
120120
if (!prematurely) {
121121
return;

0 commit comments

Comments
 (0)