summaryrefslogtreecommitdiffstats
path: root/nms-patches/InventoryMerchant.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/InventoryMerchant.patch')
-rw-r--r--nms-patches/InventoryMerchant.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/nms-patches/InventoryMerchant.patch b/nms-patches/InventoryMerchant.patch
index 30897b1d..f46377c3 100644
--- a/nms-patches/InventoryMerchant.patch
+++ b/nms-patches/InventoryMerchant.patch
@@ -55,6 +55,15 @@
public InventoryMerchant(EntityHuman entityhuman, IMerchant imerchant) {
this.itemsInSlots = NonNullList.a(3, ItemStack.a);
this.player = entityhuman;
+@@ -78,7 +119,7 @@
+ }
+
+ public IChatBaseComponent getDisplayName() {
+- return new ChatMessage("mob.villager", new Object[0]);
++ return merchant.getScoreboardDisplayName(); // CraftBukkit
+ }
+
+ public boolean hasCustomName() {
@@ -91,7 +132,7 @@
}