mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 09:09:54 +02:00
Fix exception when giving all materials
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user