mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-27 12:38:40 +01:00
Fix items with name longer than then sign can handle
This commit is contained in:
parent
5f67cadc11
commit
d51f52af9e
@ -51,7 +51,7 @@ public class ItemChecker implements Listener {
|
||||
String[] parts = itemCode.split("(?=:|-|#)", 2);
|
||||
String data = (parts.length > 1 ? parts[1] : "");
|
||||
|
||||
if (!data.isEmpty() && code.length() > (MAXIMUM_SIGN_LETTERS - data.length())) {
|
||||
if (code.length() > (MAXIMUM_SIGN_LETTERS - data.length())) {
|
||||
code = code.substring(0, MAXIMUM_SIGN_LETTERS - data.length());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user