diff --git a/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java b/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java index eed36a8..cf8c256 100644 --- a/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java +++ b/com/Acrobot/ChestShop/Listeners/PreShopCreation/ItemChecker.java @@ -55,13 +55,12 @@ public class ItemChecker implements Listener { code = code.substring(0, MAXIMUM_SIGN_LETTERS - data.length()); } - code += data; - - if (!isSameItem(code, item)) { - code = String.valueOf(item.getTypeId()) + data; + if (!isSameItem(code + data, item)) { + code = String.valueOf(item.getTypeId()); } code = StringUtil.capitalizeFirstLetter(code); + code += data; event.setSignLine(ITEM_LINE, code); } diff --git a/plugin.yml b/plugin.yml index 262536d..328571e 100644 --- a/plugin.yml +++ b/plugin.yml @@ -2,7 +2,7 @@ name: ChestShop main: com.Acrobot.ChestShop.ChestShop -version: 3.50 t0048 +version: 3.50 t0049 #for CButD dev-url: http://dev.bukkit.org/server-mods/chestshop/