From 274f98c24e219d1e0b0bd84ee791de6fdf65a41f Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 7 Aug 2024 15:36:06 +0200 Subject: [PATCH] Fix double remapping of area effect cloud particle in 1.20.2->.3 Fixes #4042 --- .../rewriter/EntityPacketRewriter1_20_3.java | 7 +++---- .../rewriter/EntityPacketRewriter1_20_5.java | 8 ++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_2to1_20_3/rewriter/EntityPacketRewriter1_20_3.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_2to1_20_3/rewriter/EntityPacketRewriter1_20_3.java index cbfcec8d6..fc376717b 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_2to1_20_3/rewriter/EntityPacketRewriter1_20_3.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_20_2to1_20_3/rewriter/EntityPacketRewriter1_20_3.java @@ -125,8 +125,6 @@ public final class EntityPacketRewriter1_20_3 extends EntityRewriter 9) { - event.setIndex(dataIndex - 1); - } - if (dataIndex == 11) { // If the particle is found first final EntityData colorData = event.dataAtIndex(9); @@ -515,6 +511,10 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter 9) { + event.setIndex(dataIndex - 1); + } }); filter().type(EntityTypes1_20_5.ARROW).index(10).handler((event, data) -> {