Skip to content

Commit

Permalink
Use scheduleSendToServer for sending pick item packet
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Dec 6, 2024
1 parent 44adf30 commit 2f86dcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static void doItemPick(final MinecraftClient client) {
}
final PacketWrapper pickFromInventory = PacketWrapper.create(ServerboundPackets1_21_2.PICK_ITEM, ProtocolTranslator.getPlayNetworkUserConnection());
pickFromInventory.write(Types.VAR_INT, index);
pickFromInventory.sendToServer(Protocol1_21_2To1_21_4.class);
pickFromInventory.scheduleSendToServer(Protocol1_21_2To1_21_4.class);
}

}

0 comments on commit 2f86dcd

Please sign in to comment.