[ci skip] Fix player combat packet value comments (#818)

This commit is contained in:
EnZaXD 2024-07-13 10:59:39 +02:00 committed by GitHub
parent d7e7992ca4
commit 7e08534f4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ public final class EntityPacketRewriter1_17 extends EntityRewriter<ClientboundPa
protocol.registerClientbound(ClientboundPackets1_17.PLAYER_COMBAT_KILL, ClientboundPackets1_16_2.PLAYER_COMBAT, wrapper -> {
wrapper.write(Types.VAR_INT, 2);
wrapper.passthrough(Types.VAR_INT); // Duration
wrapper.passthrough(Types.VAR_INT); // Duration/Player id
wrapper.passthrough(Types.INT); // Killer id
protocol.getComponentRewriter().processText(wrapper.user(), wrapper.passthrough(Types.COMPONENT));
});

View File

@ -82,7 +82,7 @@ public final class Protocol1_20To1_19_4 extends BackwardsProtocol<ClientboundPac
wrapper.write(Types.INT, -1); // Killer ID - unused (who knows for how long?)
});
registerClientbound(ClientboundPackets1_19_4.PLAYER_COMBAT_KILL, wrapper -> {
wrapper.passthrough(Types.VAR_INT); // Duration
wrapper.passthrough(Types.VAR_INT); // Player ID
wrapper.write(Types.INT, -1); // Killer ID - unused (who knows for how long?)
translatableRewriter.processText(wrapper.user(), wrapper.passthrough(Types.COMPONENT));
});