Format replacement items differently

This commit is contained in:
Matsv 2017-07-29 13:24:17 +02:00
parent dbc92572fd
commit 227396d08a
No known key found for this signature in database
GPG Key ID: 97CEC2A2EA31350F

View File

@ -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<T extends BackwardsProtocol> 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;
}