mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-22 07:37:43 +00:00
Prevent material type from being null
This commit is contained in:
parent
fbf3dbbf77
commit
466488ca7a
@ -120,6 +120,9 @@ public class ItemData extends GameResource {
|
||||
if (this.getFurnitureGadgetID() != null) {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user