Fix drag delay not updating (#1014)
This commit is contained in:
@@ -102,11 +102,11 @@ public class AntiDragPlugin extends Plugin
|
||||
@Override
|
||||
protected void startUp() throws Exception
|
||||
{
|
||||
updateConfig();
|
||||
if (this.keybind)
|
||||
{
|
||||
keyManager.registerKeyListener(hotkeyListener);
|
||||
}
|
||||
updateConfig();
|
||||
client.setInventoryDragDelay(this.alwaysOn ? this.dragDelay : DEFAULT_DELAY);
|
||||
}
|
||||
|
||||
@@ -141,6 +141,10 @@ public class AntiDragPlugin extends Plugin
|
||||
{
|
||||
client.setInventoryDragDelay(this.alwaysOn ? this.dragDelay : DEFAULT_DELAY);
|
||||
}
|
||||
if (event.getKey().equals("dragDelay") && this.alwaysOn)
|
||||
{
|
||||
client.setInventoryDragDelay(this.dragDelay);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user