Uncolorize image lines for serialized value

This commit is contained in:
filoghost 2021-07-13 19:16:53 +02:00
parent 6d5c1e4a30
commit 3539ae6a01

View File

@ -5,6 +5,7 @@
*/ */
package me.filoghost.holographicdisplays.plugin.commands.subs; package me.filoghost.holographicdisplays.plugin.commands.subs;
import me.filoghost.fcommons.Colors;
import me.filoghost.fcommons.command.CommandContext; import me.filoghost.fcommons.command.CommandContext;
import me.filoghost.fcommons.command.sub.SubCommandContext; import me.filoghost.fcommons.command.sub.SubCommandContext;
import me.filoghost.fcommons.command.validation.CommandException; import me.filoghost.fcommons.command.validation.CommandException;
@ -104,7 +105,7 @@ public class ReadimageCommand extends LineEditingCommand {
ImageMessage imageMessage = new ImageMessage(image, width); ImageMessage imageMessage = new ImageMessage(image, width);
List<InternalTextLine> newLines = new ArrayList<>(); List<InternalTextLine> newLines = new ArrayList<>();
for (String newLine : imageMessage.getLines()) { for (String newLine : imageMessage.getLines()) {
newLines.add(hologram.createTextLine(newLine, newLine)); newLines.add(hologram.createTextLine(newLine, Colors.uncolorize(newLine)));
} }
if (newLines.size() < 5) { if (newLines.size() < 5) {