Fix access

This commit is contained in:
Jason Penilla authored and Josua Parks committed 2021-11-16 20:46:15 -08:00
1 parent fb99ecf235
commit 60f49cff58
1 file changed
+2 -2
@@ -36,11 +36,11 @@ public enum FabricChatCallback {
private @Nullable ExecutorService chatExecutor;
private final List<Consumer<Chat>> listeners = new LinkedList<>();
public void initExecutor() {
private void initExecutor() {
this.chatExecutor = Executors.newSingleThreadExecutor(new NamedThreadFactory("CarbonChat-ChatThread"));
}
public void shutdownExecutor() {
private void shutdownExecutor() {
final @Nullable ExecutorService executor = this.chatExecutor;
if (executor == null) {
LOGGER.warn("Tried to shutdown null executor!");