3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-19 14:30:16 +01:00

Fixup horse inventory translation in 1.20.5->1.21 (#3980)

Fixes #3978
Dieser Commit ist enthalten in:
EnZaXD 2024-06-25 15:27:02 +02:00 committet von GitHub
Ursprung 8606e5d663
Commit 2417ffe483
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -73,7 +73,7 @@ public final class BlockItemPacketRewriter1_21 extends StructuredItemRewriter<Cl
// Now written as columns // Now written as columns
final int size = wrapper.read(Types.VAR_INT); final int size = wrapper.read(Types.VAR_INT);
wrapper.write(Types.VAR_INT, Math.max(1, (size - 1) / 3)); wrapper.write(Types.VAR_INT, Math.max(0, (size - 1) / 3));
}); });
protocol.registerClientbound(ClientboundPackets1_20_5.LEVEL_EVENT, wrapper -> { protocol.registerClientbound(ClientboundPackets1_20_5.LEVEL_EVENT, wrapper -> {