Skip to content

Commit

Permalink
Fix potion effect tag backup
Browse files Browse the repository at this point in the history
Fixes #4319
  • Loading branch information
kennytv committed Dec 17, 2024
1 parent 9675bbd commit da75e19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ private Consumable1_21_2.ConsumeEffect<?> convertConsumableEffect(final Compound
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");
Expand Down

0 comments on commit da75e19

Please sign in to comment.