From 79323a05e3a11caa626375cde9e57629a76aefe4 Mon Sep 17 00:00:00 2001 From: Melledy <52122272+Melledy@users.noreply.github.com> Date: Thu, 25 Aug 2022 12:03:26 -0700 Subject: [PATCH] Fix weird conditional in `EquipAffixData` --- src/main/java/emu/grasscutter/data/excels/EquipAffixData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/data/excels/EquipAffixData.java b/src/main/java/emu/grasscutter/data/excels/EquipAffixData.java index e7356d939..e17a74628 100644 --- a/src/main/java/emu/grasscutter/data/excels/EquipAffixData.java +++ b/src/main/java/emu/grasscutter/data/excels/EquipAffixData.java @@ -49,7 +49,7 @@ public class EquipAffixData extends GameResource { public void onLoad() { ArrayList parsed = new ArrayList(getAddProps().length); for (FightPropData prop : getAddProps()) { - if (prop.getPropType() != null || prop.getValue() == 0f) { + if (prop.getPropType() != null && prop.getValue() != 0f) { prop.onLoad(); parsed.add(prop); }