3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-11-16 04:50:10 +01:00

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

Dieser Commit ist enthalten in:
EnZaXD 2024-07-13 10:59:39 +02:00 committet von GitHub
Ursprung d7e7992ca4
Commit 7e08534f4f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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 -> { protocol.registerClientbound(ClientboundPackets1_17.PLAYER_COMBAT_KILL, ClientboundPackets1_16_2.PLAYER_COMBAT, wrapper -> {
wrapper.write(Types.VAR_INT, 2); 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 wrapper.passthrough(Types.INT); // Killer id
protocol.getComponentRewriter().processText(wrapper.user(), wrapper.passthrough(Types.COMPONENT)); protocol.getComponentRewriter().processText(wrapper.user(), wrapper.passthrough(Types.COMPONENT));
}); });

Datei anzeigen

@ -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?) wrapper.write(Types.INT, -1); // Killer ID - unused (who knows for how long?)
}); });
registerClientbound(ClientboundPackets1_19_4.PLAYER_COMBAT_KILL, wrapper -> { 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?) wrapper.write(Types.INT, -1); // Killer ID - unused (who knows for how long?)
translatableRewriter.processText(wrapper.user(), wrapper.passthrough(Types.COMPONENT)); translatableRewriter.processText(wrapper.user(), wrapper.passthrough(Types.COMPONENT));
}); });