Whenever loading an Armor Stand entity with equipment, throws an error. By checking if the entity is a Mob instance prevents this error being thrown.
java.lang.IllegalArgumentException: Cannot set drop chance for non-Mob entity
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) ~[guava-31.1-jre.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftEntityEquipment.setDropChance(CraftEntityEquipment.java:260) ~[paper-1.20.1.jar:git-Paper-169]
at org.bukkit.craftbukkit.v1_20_R1.inventory.CraftEntityEquipment.setHelmetDropChance(CraftEntityEquipment.java:215) ~[paper-1.20.1.jar:git-Paper-169]
at com.cryptomorin.xseries.XEntity.edit(XEntity.java:213) ~[SnapSkyBlock-2.0.0-SNAPSHOT.jar:?]
at com.cryptomorin.xseries.XEntity.spawn(XEntity.java:121) ~[SnapSkyBlock-2.0.0-SNAPSHOT.jar:?]
Whenever loading an Armor Stand entity with equipment, throws an error. By checking if the entity is a Mob instance prevents this error being thrown.
Used yaml to deserialize entity: