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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user