Fix exception when giving all materials

This commit is contained in:
Melledy
2026-01-02 03:32:50 -08:00
parent 9f8fd4464b
commit f949f3b619
3 changed files with 54 additions and 52 deletions
@@ -45,7 +45,7 @@ public class GiveAllCommand implements CommandHandler {
// Check sub type
for (ItemDef data : GameData.getItemDataTable()) {
if (!MATERIAL_ITEM_SUBTYPES.contains(data.getItemSubType())) {
if (data.getItemSubType() == null || !MATERIAL_ITEM_SUBTYPES.contains(data.getItemSubType())) {
continue;
}
@@ -34,7 +34,9 @@ public enum ItemSubType {
Honor (43),
CharacterYO (44),
PlayHead (45),
CharacterSkin (46);
CharacterSkin (46),
SouvenirEnergyItem (47),
Build (48);
@Getter
private final int value;