Skip to content

Commit

Permalink
Make citizensAPI impl field volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Aug 29, 2023
1 parent 7c80504 commit 65ff5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/CitizensAPI.java
Expand Up @@ -225,6 +225,6 @@ public static void talk(SpeechContext context) {
getImplementation().talk(context);
}

private static CitizensPlugin instance = null;
private static volatile CitizensPlugin instance = null;
private static ScriptCompiler scriptCompiler;
}

0 comments on commit 65ff5be

Please sign in to comment.