Skip to content

Commit

Permalink
fix(server): fix held item quality not being cast correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMcAssey committed Jan 14, 2025
1 parent ea65cbc commit df9fae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions GLOKON.Baiters.Client/src/pages/Users.vue
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ onMounted(() => {
v-model="heldItemSize"
mode="decimal"
showButtons
:min="0"
:max="12000"
:allowEmpty="false"
:min="0.0"
:max="12000.0"
:minFractionDigits="0"
:maxFractionDigits="3"
placeholder="Item Size"
Expand Down
2 changes: 1 addition & 1 deletion GLOKON.Baiters.Core/ActorActioner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void SetPlayerHeldItem(ulong steamId, HeldItem? item = null)
{
heldItemPkt.Add("id", item.Id);
heldItemPkt.Add("size", item.Size);
heldItemPkt.Add("quality", item.Quality);
heldItemPkt.Add("quality", (int)item.Quality);
}

server.SendPacket(new("actor_action")
Expand Down

0 comments on commit df9fae1

Please sign in to comment.