3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-12-26 08:10:10 +01:00

Fix potion effect tag backup

Fixes #4319
Dieser Commit ist enthalten in:
Nassim Jahnke 2024-12-17 18:24:16 +01:00
Ursprung 9675bbd8fe
Commit da75e1957f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -468,7 +468,7 @@ public final class BlockItemPacketRewriter1_21_2 extends BackwardsStructuredItem
for (int i = 0; i < effects.size(); i++) { for (int i = 0; i < effects.size(); i++) {
final CompoundTag effectTag = effects.get(i); final CompoundTag effectTag = effects.get(i);
final int effect = effectTag.getInt("effect"); final int effect = effectTag.getInt("effect");
final PotionEffectData data = convertPotionEffectData(effectTag.getCompoundTag("data")); final PotionEffectData data = convertPotionEffectData(effectTag);
potionEffects[i] = new PotionEffect(effect, data); potionEffects[i] = new PotionEffect(effect, data);
} }
final float probability = tag.getFloat("probability"); final float probability = tag.getFloat("probability");