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:
Ursprung
8606e5d663
Commit
2417ffe483
@ -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 -> {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren