xpdrops: fix hide skill icons

We need to have the underlaying child array to make and assign back a copy to remove skill icons
This commit is contained in:
Adam
2020-07-11 12:12:13 -04:00
parent e086a1155b
commit 35381c4183

View File

@@ -92,7 +92,7 @@ public class XpDropPlugin extends Plugin
private void processXpDrop(int widgetId)
{
final Widget xpdrop = client.getWidget(TO_GROUP(widgetId), TO_CHILD(widgetId));
final Widget[] children = xpdrop.getDynamicChildren();
final Widget[] children = xpdrop.getChildren();
// child 0 is the xpdrop text, everything else are sprite ids for skills
final Widget text = children[0];