Merge pull request #2091 from DevDennis/fix-prayer-reorder-shutdown

Fix prayer reorder shutdown
This commit is contained in:
Tomas Slusny
2018-04-28 14:56:35 +02:00
committed by GitHub

View File

@@ -229,7 +229,7 @@ public class ReorderPrayersPlugin extends Plugin
{
clearPrayerTabMenus();
prayerOrder = Prayer.values();
reorderPrayers();
reorderPrayers(false);
}
@Subscribe
@@ -361,6 +361,11 @@ public class ReorderPrayersPlugin extends Plugin
}
private void reorderPrayers()
{
reorderPrayers(config.unlockPrayerReordering());
}
private void reorderPrayers(boolean unlocked)
{
if (client.getGameState() != GameState.LOGGED_IN)
{
@@ -387,7 +392,7 @@ public class ReorderPrayersPlugin extends Plugin
Widget prayerWidget = prayerWidgets.get(prayer.ordinal());
int widgetConfig = prayerWidget.getClickMask();
if (config.unlockPrayerReordering())
if (unlocked)
{
// allow dragging of this widget
widgetConfig |= DRAG;