Fix potion effect tag backup

Fixes #4319
This commit is contained in:
Nassim Jahnke 2024-12-17 18:24:16 +01:00
parent 9675bbd8fe
commit da75e1957f
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -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");