mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 08:11:12 +00:00
Fix potential NPR
This commit is contained in:
parent
c71386c69e
commit
22fd7ab619
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user