From 46fee38217d6946f396a7e3ac6221dbf2608a036 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Thu, 1 Jun 2023 03:30:00 -0400 Subject: [PATCH] Fix ability modifiers NullPointerException --- src/main/java/emu/grasscutter/data/binout/AbilityData.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/data/binout/AbilityData.java b/src/main/java/emu/grasscutter/data/binout/AbilityData.java index ea6fc712b..bf8df5a83 100644 --- a/src/main/java/emu/grasscutter/data/binout/AbilityData.java +++ b/src/main/java/emu/grasscutter/data/binout/AbilityData.java @@ -87,7 +87,10 @@ public class AbilityData { } private void initializeModifiers() { - if (modifiers == null) return; + if (modifiers == null) { + this.modifiers = new HashMap<>(); + return; + } var _modifiers = modifiers.entrySet().stream()