Fix ItemAlias

Since ItemUtil already performs MaxWidth handling, and the full length key is needed for ItemAliasModule, remove MaxWidth from ItemStringListener.
This commit is contained in:
Fyrinlight 2023-05-08 17:45:29 -04:00 committed by GitHub
parent 05ebe2d054
commit 418e70f6ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ public class ItemStringListener implements Listener {
@EventHandler(priority = EventPriority.NORMAL)
public static void calculateItemString(ItemStringQueryEvent event) {
if (event.getItemString() == null) {
event.setItemString(MaterialUtil.getName(event.getItem(), event.getMaxWidth()));
event.setItemString(MaterialUtil.getName(event.getItem()));
}
}