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

Fixes #3978
This commit is contained in:
EnZaXD 2024-06-25 15:27:02 +02:00 committed by GitHub
parent 8606e5d663
commit 2417ffe483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ public final class BlockItemPacketRewriter1_21 extends StructuredItemRewriter<Cl
// Now written as columns
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 -> {