From bd7725f694916243d66880d45600c2279e8e47f6 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Mon, 1 Apr 2024 15:35:33 +1100 Subject: [PATCH] Now with less warnings --- .github/actions/upload_build/action.yml | 2 +- .github/workflows/build.yml | 2 +- MCGalaxy/CorePlugin/ChatHandler.cs | 5 +++-- MCGalaxy/Modules/Relay/RelayBot.cs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/actions/upload_build/action.yml b/.github/actions/upload_build/action.yml index 36fc2fcbe..84f896586 100644 --- a/.github/actions/upload_build/action.yml +++ b/.github/actions/upload_build/action.yml @@ -13,7 +13,7 @@ inputs: runs: using: "composite" steps: - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: ${{ inputs.DEST_NAME }} path: ${{ inputs.SOURCE_FILE }} \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c16a75ce..0e5c65ece 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: if: github.ref_name == github.event.repository.default_branch runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Compile MCGalaxy using mono shell: bash id: compile diff --git a/MCGalaxy/CorePlugin/ChatHandler.cs b/MCGalaxy/CorePlugin/ChatHandler.cs index 3f1e1af2d..2bd51c9cd 100644 --- a/MCGalaxy/CorePlugin/ChatHandler.cs +++ b/MCGalaxy/CorePlugin/ChatHandler.cs @@ -29,11 +29,12 @@ namespace MCGalaxy.Core { if (scope == ChatScope.Perms) { logType = LogType.StaffChat; - } else if (scope == ChatScope.Chatroom || scope == ChatScope.AllChatrooms) { - logType = LogType.ChatroomChat; } else if (scope == ChatScope.Rank) { logType = LogType.RankChat; } + //else if (scope == ChatScope.Chatroom || scope == ChatScope.AllChatrooms) { + // logType = LogType.ChatroomChat; + //} if (scope != ChatScope.PM) Logger.Log(logType, text); } diff --git a/MCGalaxy/Modules/Relay/RelayBot.cs b/MCGalaxy/Modules/Relay/RelayBot.cs index 57888aa62..217481380 100644 --- a/MCGalaxy/Modules/Relay/RelayBot.cs +++ b/MCGalaxy/Modules/Relay/RelayBot.cs @@ -54,7 +54,7 @@ namespace MCGalaxy.Modules.Relay protected bool canReconnect; protected byte retries; - volatile Thread worker; + Thread worker; /// Whether this relay bot can automatically reconnect protected abstract bool CanReconnect { get; }