From 6220b5c542acaabf60cf46e7c4d34943688d11bb Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 22 Nov 2016 10:30:01 +1100 Subject: [PATCH] SPIGOT-2817: Custom Merchant title omits color --- .../org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java index fe111454f4..51e8d1e915 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMerchantCustom.java @@ -1,6 +1,7 @@ package org.bukkit.craftbukkit.inventory; import net.minecraft.server.BlockPosition; +import net.minecraft.server.ChatComponentText; import net.minecraft.server.EntityHuman; import net.minecraft.server.IChatBaseComponent; import net.minecraft.server.IMerchant; @@ -8,7 +9,6 @@ import net.minecraft.server.ItemStack; import net.minecraft.server.MerchantRecipe; import net.minecraft.server.MerchantRecipeList; import net.minecraft.server.World; -import org.bukkit.craftbukkit.util.CraftChatMessage; public class CraftMerchantCustom extends CraftMerchant { @@ -58,7 +58,7 @@ public class CraftMerchantCustom extends CraftMerchant { @Override public IChatBaseComponent getScoreboardDisplayName() { - return CraftChatMessage.fromString(title)[0]; + return new ChatComponentText(title); } @Override