Now with less warnings

This commit is contained in:
UnknownShadow200 2024-04-01 15:35:33 +11:00
parent 23d5ba4d79
commit bd7725f694
4 changed files with 6 additions and 5 deletions

View File

@ -13,7 +13,7 @@ inputs:
runs: runs:
using: "composite" using: "composite"
steps: steps:
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v4
with: with:
name: ${{ inputs.DEST_NAME }} name: ${{ inputs.DEST_NAME }}
path: ${{ inputs.SOURCE_FILE }} path: ${{ inputs.SOURCE_FILE }}

View File

@ -10,7 +10,7 @@ jobs:
if: github.ref_name == github.event.repository.default_branch if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Compile MCGalaxy using mono - name: Compile MCGalaxy using mono
shell: bash shell: bash
id: compile id: compile

View File

@ -29,11 +29,12 @@ namespace MCGalaxy.Core {
if (scope == ChatScope.Perms) { if (scope == ChatScope.Perms) {
logType = LogType.StaffChat; logType = LogType.StaffChat;
} else if (scope == ChatScope.Chatroom || scope == ChatScope.AllChatrooms) {
logType = LogType.ChatroomChat;
} else if (scope == ChatScope.Rank) { } else if (scope == ChatScope.Rank) {
logType = LogType.RankChat; logType = LogType.RankChat;
} }
//else if (scope == ChatScope.Chatroom || scope == ChatScope.AllChatrooms) {
// logType = LogType.ChatroomChat;
//}
if (scope != ChatScope.PM) Logger.Log(logType, text); if (scope != ChatScope.PM) Logger.Log(logType, text);
} }

View File

@ -54,7 +54,7 @@ namespace MCGalaxy.Modules.Relay
protected bool canReconnect; protected bool canReconnect;
protected byte retries; protected byte retries;
volatile Thread worker; Thread worker;
/// <summary> Whether this relay bot can automatically reconnect </summary> /// <summary> Whether this relay bot can automatically reconnect </summary>
protected abstract bool CanReconnect { get; } protected abstract bool CanReconnect { get; }