fix prayer reorder shutdown
This commit is contained in:
@@ -229,7 +229,7 @@ public class ReorderPrayersPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
clearPrayerTabMenus();
|
clearPrayerTabMenus();
|
||||||
prayerOrder = Prayer.values();
|
prayerOrder = Prayer.values();
|
||||||
reorderPrayers();
|
reorderPrayers(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
@@ -361,6 +361,11 @@ public class ReorderPrayersPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void reorderPrayers()
|
private void reorderPrayers()
|
||||||
|
{
|
||||||
|
reorderPrayers(config.unlockPrayerReordering());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void reorderPrayers(boolean unlocked)
|
||||||
{
|
{
|
||||||
if (client.getGameState() != GameState.LOGGED_IN)
|
if (client.getGameState() != GameState.LOGGED_IN)
|
||||||
{
|
{
|
||||||
@@ -387,7 +392,7 @@ public class ReorderPrayersPlugin extends Plugin
|
|||||||
Widget prayerWidget = prayerWidgets.get(prayer.ordinal());
|
Widget prayerWidget = prayerWidgets.get(prayer.ordinal());
|
||||||
|
|
||||||
int widgetConfig = prayerWidget.getClickMask();
|
int widgetConfig = prayerWidget.getClickMask();
|
||||||
if (config.unlockPrayerReordering())
|
if (unlocked)
|
||||||
{
|
{
|
||||||
// allow dragging of this widget
|
// allow dragging of this widget
|
||||||
widgetConfig |= DRAG;
|
widgetConfig |= DRAG;
|
||||||
|
|||||||
Reference in New Issue
Block a user