Compare commits

...

2 Commits

Author SHA1 Message Date
Roflmuffin
f1efc6103d chore: retarget release zip from build/output folder 2023-11-08 14:52:56 +10:00
Roflmuffin
f6935cc9d2 fix: cast long event params properly, fixes #35 2023-11-08 14:32:26 +10:00
2 changed files with 3 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ jobs:
path: build/output/
- name: Zip CounterStrikeSharp Build
run: zip -qq -r counterstrikesharp-build-${{ env.BUILD_NUMBER }}-${{ env.GITHUB_SHA_SHORT }}.zip build/output/
run: (cd build/output && zip -qq -r ../../counterstrikesharp-build-${{ env.BUILD_NUMBER }}-${{ env.GITHUB_SHA_SHORT }}.zip *)
- name: Add dotnet runtime
run: |
@@ -75,7 +75,7 @@ jobs:
mv build/output/addons/counterstrikesharp/dotnet/shared/Microsoft.NETCore.App/7.0.11/* build/output/addons/counterstrikesharp/dotnet/shared/Microsoft.NETCore.App/
- name: Zip CounterStrikeSharp Runtime Build
run: zip -qq -r counterstrikesharp-with-runtime-build-${{ env.BUILD_NUMBER }}-${{ env.GITHUB_SHA_SHORT }}.zip build/output/
run: (cd build/output && zip -qq -r ../../counterstrikesharp-with-runtime-build-${{ env.BUILD_NUMBER }}-${{ env.GITHUB_SHA_SHORT }}.zip *)
- uses: actions/upload-artifact@v3
with:

View File

@@ -53,7 +53,7 @@ namespace CounterStrikeSharp.API.Modules.Events
_ when type == typeof(string) => GetString(name),
_ when type == typeof(bool) => GetBool(name),
_ when type == typeof(ulong) => GetUint64(name),
_ when type == typeof(long) => GetUint64(name),
_ when type == typeof(long) => (long)GetUint64(name),
_ when type == typeof(CCSPlayerController) => GetPlayer(name),
_ => throw new NotSupportedException(),
};