Skip to content

Commit

Permalink
Fix includeItemBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Sep 15, 2024
1 parent 9a826d2 commit c23cd44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/structures/SkyBlock/Auctions/BaseAuction.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ class BaseAuction {
* Item bytes
* @type {ItemBytes|null}
*/
this.itemBytes = includeItemBytes ? new ItemBytes(data.item_bytes) : null;
this.itemBytes =
includeItemBytes && data.item_bytes
? new ItemBytes(data.item_bytes.data ? data.item_bytes.data : data.item_bytes)
: null;
}
/**
* Auction ID
Expand Down

0 comments on commit c23cd44

Please sign in to comment.