Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/Rocket.Unturned.Module.PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ jobs:
dotnet-version: 7.x

- name: Build
run: dotnet build ./Rocket.Unturned/Rocket.Unturned.csproj \
/p:RocketModVersion=0.0.0-preview \
/p:CreateRocketModUnturnedModuleArtifacts=true \
-c Release \
-f net461
run: dotnet build ./Rocket.Unturned/Rocket.Unturned.csproj /p:RocketModVersion=0.0.0-preview /p:CreateRocketModUnturnedModuleArtifacts=true -c Release -f net461

- run: echo "::set-output name=commit_hash::$(git rev-parse --short ${{ github.sha }})"
id: commit_hash
Expand Down
4 changes: 2 additions & 2 deletions Rocket/Rocket.Core/Commands/RocketCommandManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void Register(IRocketCommand command, string alias, CommandPriority prior

public void DeregisterFromAssembly(Assembly assembly)
{
commands.RemoveAll(rc => rc.Command.GetType().Assembly == assembly);
commands.RemoveAll(rc => getCommandType(rc.Command).Assembly == assembly);
}

public double GetCooldown(IRocketPlayer player, IRocketCommand command)
Expand Down Expand Up @@ -331,7 +331,7 @@ public void RegisterFromAssembly(Assembly assembly)
}
}
}

public class RegisteredRocketCommand : IRocketCommand
{
public Type Type;
Expand Down