runelite-api: make HashTable a generic

This commit is contained in:
Adam
2018-06-26 15:09:28 -04:00
parent a83e05ddaa
commit 8ad6f466da
4 changed files with 7 additions and 7 deletions

View File

@@ -339,10 +339,9 @@ public class ReorderPrayersPlugin extends Plugin
private PrayerTabState getPrayerTabState()
{
HashTable componentTable = client.getComponentTable();
for (Node node : componentTable.getNodes())
HashTable<WidgetNode> componentTable = client.getComponentTable();
for (WidgetNode widgetNode : componentTable.getNodes())
{
WidgetNode widgetNode = (WidgetNode) node;
if (widgetNode.getId() == WidgetID.PRAYER_GROUP_ID)
{
return PrayerTabState.PRAYERS;