Merge pull request #2567 from xKylee/widgetfix

This commit is contained in:
Owain van Brakel
2020-05-13 18:01:31 +02:00
committed by GitHub

View File

@@ -531,6 +531,10 @@ public abstract class RSClientMixin implements RSClient
public Widget[] getWidgetRoots()
{
int topGroup = getWidgetRoot();
if (topGroup == -1)
{
return new Widget[]{};
}
List<Widget> widgets = new ArrayList<Widget>();
for (RSWidget widget : getWidgets()[topGroup])
{