Skip to content

Commit 2f0b513

Browse files
committed
Got rid of modifiers from ImageElement
1 parent 5981ef9 commit 2f0b513

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/me/tom/sparse/spigot/chat/menu/element/ImageElement.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,15 @@
1212
import java.util.Arrays;
1313
import java.util.Collections;
1414
import java.util.List;
15+
import java.util.stream.Collectors;
1516

1617
@Deprecated
1718
public class ImageElement extends Element
1819
{
19-
public static final List<ChatColor> COLORS = Collections.unmodifiableList(Arrays.asList(ChatColor.values()));
20+
public static final List<ChatColor> COLORS = Collections.unmodifiableList(
21+
Arrays.stream(ChatColor.values())
22+
.filter(c -> c != ChatColor.BOLD && c != ChatColor.MAGIC && c != ChatColor.UNDERLINE && c != ChatColor.ITALIC && c != ChatColor.STRIKETHROUGH).collect(Collectors.toList())
23+
);
2024

2125
protected int[] colors = new int[20 * 20];
2226
protected PixelClickCallback callback;

0 commit comments

Comments
 (0)