Skip to content

Commit

Permalink
fix buffer error, caused by not actually supplying the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Promises committed Oct 6, 2020
1 parent b5961c2 commit 09eea29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/inbound-packets/item-interaction-packet.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const itemInteractionPacket = (player, packet) => {
};

const packetDetails = packets[packetId];
const { widgetId, containerId, itemId, slot } = packetDetails.packetDef(packet);
const { widgetId, containerId, itemId, slot } = packetDetails.packetDef(packet.buffer);

const option = getItemOption(itemId, packetDetails.optionNumber, { widgetId, containerId });

Expand Down

0 comments on commit 09eea29

Please sign in to comment.