mirror of
https://github.com/filoghost/HolographicDisplays.git
synced 2024-12-20 15:57:49 +01:00
Uncolorize image lines for serialized value
This commit is contained in:
parent
6d5c1e4a30
commit
3539ae6a01
@ -5,6 +5,7 @@
|
||||
*/
|
||||
package me.filoghost.holographicdisplays.plugin.commands.subs;
|
||||
|
||||
import me.filoghost.fcommons.Colors;
|
||||
import me.filoghost.fcommons.command.CommandContext;
|
||||
import me.filoghost.fcommons.command.sub.SubCommandContext;
|
||||
import me.filoghost.fcommons.command.validation.CommandException;
|
||||
@ -104,7 +105,7 @@ public class ReadimageCommand extends LineEditingCommand {
|
||||
ImageMessage imageMessage = new ImageMessage(image, width);
|
||||
List<InternalTextLine> newLines = new ArrayList<>();
|
||||
for (String newLine : imageMessage.getLines()) {
|
||||
newLines.add(hologram.createTextLine(newLine, newLine));
|
||||
newLines.add(hologram.createTextLine(newLine, Colors.uncolorize(newLine)));
|
||||
}
|
||||
|
||||
if (newLines.size() < 5) {
|
||||
|
Loading…
Reference in New Issue
Block a user