Fix merchant inventories with custom titles
By: blablubbabc <lukas@wirsindwir.de>
This commit is contained in:
@@ -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 @@
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user