Prevent material type from being null

This commit is contained in:
Melledy 2022-08-24 17:07:46 -07:00
parent fbf3dbbf77
commit 466488ca7a
No known key found for this signature in database
GPG Key ID: 2A8E7A1D64737CCB

View File

@ -120,6 +120,9 @@ public class ItemData extends GameResource {
if (this.getFurnitureGadgetID() != null) { if (this.getFurnitureGadgetID() != null) {
this.furnitureGadgetID = this.furnitureGadgetID.stream().filter(x -> x > 0).toList(); this.furnitureGadgetID = this.furnitureGadgetID.stream().filter(x -> x > 0).toList();
} }
// Prevent material type from being null
this.materialType = this.materialType == null ? MaterialType.MATERIAL_NONE : this.materialType;
} }
@Getter @Getter