From 7e08534f4f3a8e294cdc6bc402258f658305a4e0 Mon Sep 17 00:00:00 2001 From: EnZaXD Date: Sat, 13 Jul 2024 10:59:39 +0200 Subject: [PATCH] [ci skip] Fix player combat packet value comments (#818) --- .../v1_17to1_16_4/rewriter/EntityPacketRewriter1_17.java | 2 +- .../protocol/v1_20to1_19_4/Protocol1_20To1_19_4.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/rewriter/EntityPacketRewriter1_17.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/rewriter/EntityPacketRewriter1_17.java index a3c6a665..0c532c23 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/rewriter/EntityPacketRewriter1_17.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_17to1_16_4/rewriter/EntityPacketRewriter1_17.java @@ -137,7 +137,7 @@ public final class EntityPacketRewriter1_17 extends EntityRewriter { 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)); }); diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20to1_19_4/Protocol1_20To1_19_4.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20to1_19_4/Protocol1_20To1_19_4.java index 39b3603b..e8a941ae 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20to1_19_4/Protocol1_20To1_19_4.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_20to1_19_4/Protocol1_20To1_19_4.java @@ -82,7 +82,7 @@ public final class Protocol1_20To1_19_4 extends BackwardsProtocol { - 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)); });