From c2bc2b69fb9c699d541f43f0df76341ebd45607f Mon Sep 17 00:00:00 2001 From: tastybento Date: Wed, 27 Apr 2016 17:33:59 -0700 Subject: [PATCH] Added a description to non-described items in the minishop. --- pom.xml | 2 +- src/com/wasteofplastic/askyblock/panels/MiniShopItem.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7e5d4e2cd..25053d460 100644 --- a/pom.xml +++ b/pom.xml @@ -161,5 +161,5 @@ http://maven.sk89q.com/repo/ - 3.0.0.5 + 3.0.0.6 diff --git a/src/com/wasteofplastic/askyblock/panels/MiniShopItem.java b/src/com/wasteofplastic/askyblock/panels/MiniShopItem.java index 96f9ff8df..283582039 100644 --- a/src/com/wasteofplastic/askyblock/panels/MiniShopItem.java +++ b/src/com/wasteofplastic/askyblock/panels/MiniShopItem.java @@ -58,6 +58,9 @@ public class MiniShopItem { public MiniShopItem(Material material, String extra, int slot, String description, int quantity, Double price, Double sellPrice) { this.slot = slot; this.material = material; + if (description.isEmpty()) { + description = Util.prettifyText(material.name()); + } this.description = description; this.price = price; this.sellPrice = sellPrice;