Fix merchant inventories with custom titles

By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
CraftBukkit/Spigot
2018-08-01 08:49:53 +10:00
parent 9dfef07bb5
commit 51e1d686e1
3 changed files with 15 additions and 3 deletions

View File

@@ -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 @@
}