3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-25 15:50:12 +01:00

Fix trade list sending

Forgot to remove cancellation from initial configuration testing
Fixes #594
Dieser Commit ist enthalten in:
Nassim Jahnke 2023-09-28 11:19:36 +10:00
Ursprung cc7df5a4fc
Commit 92c160c43a

Datei anzeigen

@ -218,7 +218,6 @@ public final class BlockItemPacketRewriter1_20_2 extends ItemRewriter<Clientboun
} }
}); });
protocol.registerClientbound(ClientboundPackets1_20_2.TRADE_LIST, wrapper -> { protocol.registerClientbound(ClientboundPackets1_20_2.TRADE_LIST, wrapper -> {
wrapper.cancel();
wrapper.passthrough(Type.VAR_INT); // Container id wrapper.passthrough(Type.VAR_INT); // Container id
final int size = wrapper.passthrough(Type.VAR_INT); final int size = wrapper.passthrough(Type.VAR_INT);
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {