Fix potential NPR

This commit is contained in:
KingRainbow44 2023-04-13 21:22:21 -04:00
parent c71386c69e
commit 22fd7ab619
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -8,6 +8,7 @@ import emu.grasscutter.data.ResourceType;
import emu.grasscutter.data.common.ItemParamData;
import emu.grasscutter.game.quest.enums.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
@ -66,6 +67,8 @@ public class QuestData extends GameResource {
if (this.failCondComb == null) this.failCondComb = LogicType.LOGIC_NONE;
if (this.gainItems == null) this.gainItems = Collections.emptyList();
addToCache();
}