Skip to content

Commit

Permalink
Fixed bug in ItemSerializer for Season 6
Browse files Browse the repository at this point in the history
Setting socket bytes should be limited to the maximum number of sockets. Otherwise all other bytes are set to 0xFF.
  • Loading branch information
sven-n committed Jan 2, 2025
1 parent f836c35 commit 0d1a2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GameServer/RemoteView/ItemSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public int SerializeItem(Span<byte> target, Item item)
}

target[6] = (byte)(GetHarmonyByte(item) | GetSocketBonusByte(item));
SetSocketBytes(target.Slice(7), item);
SetSocketBytes(target.Slice(7, MaximumSockets), item);

return this.NeededSpace;
}
Expand Down

0 comments on commit 0d1a2d5

Please sign in to comment.