From 0eb997be33815be29ddf3f500285c86602a1ca1f Mon Sep 17 00:00:00 2001 From: fullwall Date: Wed, 10 May 2023 23:58:31 +0800 Subject: [PATCH] Set container title in anvilmenu --- .../main/java/net/citizensnpcs/nms/v1_19_R3/util/NMSImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/util/NMSImpl.java b/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/util/NMSImpl.java index f7eae13d7..84f39f320 100644 --- a/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/util/NMSImpl.java +++ b/v1_19_R3/src/main/java/net/citizensnpcs/nms/v1_19_R3/util/NMSImpl.java @@ -1256,6 +1256,7 @@ public class NMSImpl implements NMSBridge { return this.bukkitEntity; } }; + container.setTitle(MutableComponent.create(new LiteralContents(title == null ? "" : title))); container.getBukkitView().setItem(0, anvil.getItem(0)); container.getBukkitView().setItem(1, anvil.getItem(1)); container.checkReachable = false;