From 227396d08ab61aeb0ac9c96652b13fd4f93714a7 Mon Sep 17 00:00:00 2001 From: Matsv Date: Sat, 29 Jul 2017 13:24:17 +0200 Subject: [PATCH] Format replacement items differently --- .../nl/matsv/viabackwards/api/rewriters/BlockItemRewriter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/api/rewriters/BlockItemRewriter.java b/core/src/main/java/nl/matsv/viabackwards/api/rewriters/BlockItemRewriter.java index fc0fd4b2..08b9ebcf 100644 --- a/core/src/main/java/nl/matsv/viabackwards/api/rewriters/BlockItemRewriter.java +++ b/core/src/main/java/nl/matsv/viabackwards/api/rewriters/BlockItemRewriter.java @@ -14,6 +14,7 @@ import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; +import net.md_5.bungee.api.ChatColor; import nl.matsv.viabackwards.api.BackwardsProtocol; import nl.matsv.viabackwards.api.entities.blockitem.BlockItemSettings; import nl.matsv.viabackwards.protocol.protocol1_12to1_11_1.data.BlockColors; @@ -209,7 +210,7 @@ public abstract class BlockItemRewriter extends Rew protected CompoundTag getNamedTag(String text) { CompoundTag tag = new CompoundTag(""); tag.put(new CompoundTag("display")); - ((CompoundTag) tag.get("display")).put(new StringTag("Name", text)); + ((CompoundTag) tag.get("display")).put(new StringTag("Name", ChatColor.RESET + text)); return tag; }