Skip to content

Commit

Permalink
1.1.1: air item fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
benfiratkaya committed Jun 14, 2024
1 parent f03c8d4 commit 94efdcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public Product(@NotNull JSONObject product) {
if (materialName != null && XMaterial.matchXMaterial(materialName).isPresent())
this.material = XMaterial.matchXMaterial(product.getString("minecraftItem")).get();

if (material == null || !material.isSupported())
if (material == null || !material.isSupported() || material == XMaterial.AIR)
this.material = XMaterial.matchXMaterial(Bukkit.getInstance().getModulesFile().getWebStore().getGui().getProductDefaultMaterial()).orElse(XMaterial.DIAMOND);

Optional.ofNullable(product.optString("minecraftItemModelID", null))
Expand Down

0 comments on commit 94efdcf

Please sign in to comment.