From da75e1957fa32abb367ce19b874f921823574a81 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Tue, 17 Dec 2024 18:24:16 +0100 Subject: [PATCH] Fix potion effect tag backup Fixes #4319 --- .../v1_21_2to1_21/rewriter/BlockItemPacketRewriter1_21_2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/BlockItemPacketRewriter1_21_2.java b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/BlockItemPacketRewriter1_21_2.java index e311194b..27c52d38 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/BlockItemPacketRewriter1_21_2.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_2to1_21/rewriter/BlockItemPacketRewriter1_21_2.java @@ -468,7 +468,7 @@ public final class BlockItemPacketRewriter1_21_2 extends BackwardsStructuredItem for (int i = 0; i < effects.size(); i++) { final CompoundTag effectTag = effects.get(i); final int effect = effectTag.getInt("effect"); - final PotionEffectData data = convertPotionEffectData(effectTag.getCompoundTag("data")); + final PotionEffectData data = convertPotionEffectData(effectTag); potionEffects[i] = new PotionEffect(effect, data); } final float probability = tag.getFloat("probability");