Skip to content

Commit

Permalink
refactor: Update CommitmentBaseModel onRun method to use getter for o…
Browse files Browse the repository at this point in the history
…nRun property
  • Loading branch information
BlackRam-oss committed Jun 5, 2024
1 parent 70af785 commit fb8253a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Commitment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default class CommitmentBaseModel<TCharacter extends CharacterBaseModel =
/**
* Is a function that is called when the player interacts with the character.
*/
onRun(): undefined | ((props: OnRunProps) => void) {
get onRun(): undefined | ((props: OnRunProps) => void) {
let onRun = this._onRun
if (!onRun) {
console.warn("[NQTR] onRun() is not defined for commitmen, so it will not run.", this)
Expand Down

0 comments on commit fb8253a

Please sign in to comment.