Browse Source

Can't be null

feature-config-parsing2
MagicBot 5 months ago
parent
commit
da63d9d926
  1. 4
      src/engine/ConfigParsing/EffectsParser.java

4
src/engine/ConfigParsing/EffectsParser.java

@ -42,9 +42,7 @@ public class EffectsParser {
while (matcher.find()) { while (matcher.find()) {
EffectEntry effectEntry = parseEffectEntry(matcher.group()); EffectEntry effectEntry = parseEffectEntry(matcher.group());
effect_data.put(effectEntry.id, effectEntry);
if (effectEntry != null)
effect_data.put(effectEntry.id, effectEntry);
} }
} }

Loading…
Cancel
Save