xpdrops: Fix white xp drop text recolors

Selecting #FFFFFF as a prayer color yields an RGB value of -1. Since all
values will be negative numbers, 0 should be used as an "unset" value
instead.
This commit is contained in:
Jordan Atwood
2020-07-11 15:26:49 -07:00
parent 35381c4183
commit 16c78630fb

View File

@@ -114,7 +114,7 @@ public class XpDropPlugin extends Plugin
.skip(1) // skip text .skip(1) // skip text
.mapToInt(Widget::getSpriteId); .mapToInt(Widget::getSpriteId);
int color = -1; int color = 0;
switch (prayer) switch (prayer)
{ {
@@ -142,7 +142,7 @@ public class XpDropPlugin extends Plugin
break; break;
} }
if (color != -1) if (color != 0)
{ {
text.setTextColor(color); text.setTextColor(color);
} }