Skip to content

Commit

Permalink
fix: import correct field for click masks
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-F committed Mar 26, 2018
1 parent ee03573 commit 102b8b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public interface Widget

void setContentType(int contentType);

int getConfig();
int setClickMask();

void setConfig(int config);
void setClickMask(int mask);

Widget getParent();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ private void reorderPrayers()
Prayer prayer = prayerOrder[index];
Widget prayerWidget = prayerWidgets.get(prayer.ordinal());

int widgetConfig = prayerWidget.getConfig();
int widgetConfig = prayerWidget.setClickMask();
if (config.unlockPrayerReordering())
{
// allow dragging of this widget
Expand All @@ -401,7 +401,7 @@ private void reorderPrayers()
// remove drag on flag
widgetConfig &= ~DRAG_ON;
}
prayerWidget.setConfig(widgetConfig);
prayerWidget.setClickMask(widgetConfig);

int x = index % PRAYER_COLUMN_COUNT;
int y = index / PRAYER_COLUMN_COUNT;
Expand Down
8 changes: 4 additions & 4 deletions runescape-api/src/main/java/net/runelite/rs/api/RSWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public interface RSWidget extends Widget
@Import("parentId")
int getRSParentId();

@Import("config")
int getConfig();
@Import("clickMask")
int setClickMask();

@Import("config")
void setConfig(int config);
@Import("clickMask")
void setClickMask(int mask);

@Import("boundsIndex")
int getBoundsIndex();
Expand Down

0 comments on commit 102b8b1

Please sign in to comment.