Fix uppercasing the wrong things

This commit is contained in:
Acrobot 2013-02-15 21:06:27 +01:00
parent 715702d2bb
commit abdbcc15e1
2 changed files with 4 additions and 5 deletions

View File

@ -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);
}

View File

@ -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/