mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
SPIGOT-2817: Custom Merchant title omits color
This commit is contained in:
parent
691628ab5c
commit
6220b5c542
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
package org.bukkit.craftbukkit.inventory;
|
package org.bukkit.craftbukkit.inventory;
|
||||||
|
|
||||||
import net.minecraft.server.BlockPosition;
|
import net.minecraft.server.BlockPosition;
|
||||||
|
import net.minecraft.server.ChatComponentText;
|
||||||
import net.minecraft.server.EntityHuman;
|
import net.minecraft.server.EntityHuman;
|
||||||
import net.minecraft.server.IChatBaseComponent;
|
import net.minecraft.server.IChatBaseComponent;
|
||||||
import net.minecraft.server.IMerchant;
|
import net.minecraft.server.IMerchant;
|
||||||
|
@ -8,7 +9,6 @@ import net.minecraft.server.ItemStack;
|
||||||
import net.minecraft.server.MerchantRecipe;
|
import net.minecraft.server.MerchantRecipe;
|
||||||
import net.minecraft.server.MerchantRecipeList;
|
import net.minecraft.server.MerchantRecipeList;
|
||||||
import net.minecraft.server.World;
|
import net.minecraft.server.World;
|
||||||
import org.bukkit.craftbukkit.util.CraftChatMessage;
|
|
||||||
|
|
||||||
public class CraftMerchantCustom extends CraftMerchant {
|
public class CraftMerchantCustom extends CraftMerchant {
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ public class CraftMerchantCustom extends CraftMerchant {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IChatBaseComponent getScoreboardDisplayName() {
|
public IChatBaseComponent getScoreboardDisplayName() {
|
||||||
return CraftChatMessage.fromString(title)[0];
|
return new ChatComponentText(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue