remove arbitary item data

This commit is contained in:
Sen 2025-07-07 00:38:38 +02:00
parent 97b708bb23
commit 4e94a660ff
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
18 changed files with 210 additions and 392 deletions

View file

@ -36,7 +36,7 @@ public class GuiRename extends Gui implements FieldCallback, ButtonCallback {
}
public GuiRename(int slot, ItemStack stack, Gui prev) {
this.itemName = stack.getItem().getDisplay(stack);
this.itemName = stack.getItem().getDisplay();
this.origName = stack.hasDisplayName() ? TextColor.stripCodes(stack.getDisplayName()) : "";
this.slot = slot;
this.previous = prev;