mirror of
https://github.com/Melledy/Nebula.git
synced 2026-11-04 21:36:51 +01:00
Fix exception when giving all materials
This commit is contained in:
1 parent
9f8fd4464b
commit
f949f3b619
2 files changed
+4
-2
No files matched your search
@@ -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