Skip to content

Commit

Permalink
Update AntiDragPlugin.java
Browse files Browse the repository at this point in the history
  • Loading branch information
xKylee authored Oct 3, 2019
1 parent 5455fde commit c54e518
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ AntiDragConfig getConfig(ConfigManager configManager)
}

private boolean alwaysOn;
private boolean keybind;
private boolean holdkeybind;
private boolean toggleKeyBind;
private boolean holdKeyBind;
private Keybind key;
private int dragDelay;
private boolean reqfocus;
Expand All @@ -109,7 +109,7 @@ protected void startUp() throws Exception
addSubscriptions();
updateConfig();

if (this.keybind || this.holdkeybind)
if (this.toggleKeyBind || this.holdKeyBind)
{
keyManager.registerKeyListener(hotkeyListener);
}
Expand Down Expand Up @@ -141,9 +141,9 @@ private void onConfigChanged(ConfigChanged event)
{
updateConfig();

if (event.getKey().equals("keybind"))
if (event.getKey().equals("toggleKeyBind"))
{
if (this.keybind)
if (this.toggleKeyBind)
{
keyManager.registerKeyListener(hotkeyListener);
}
Expand All @@ -153,9 +153,9 @@ private void onConfigChanged(ConfigChanged event)
}
}
if
(event.getKey().equals(("holdkeybind")))
(event.getKey().equals("holdKeyBind"))
{
if (this.holdkeybind)
if (this.holdKeyBind)
{
keyManager.registerKeyListener(hotkeyListener);
}
Expand Down Expand Up @@ -184,7 +184,7 @@ private void onGameStateChanged(GameStateChanged event)
switch (event.getGameState())
{
case LOGGED_IN:
if (keybind || holdkeybind)
if (toggleKeyBind || holdKeyBind)
{
keyManager.registerKeyListener(hotkeyListener);
}
Expand All @@ -197,8 +197,8 @@ private void onGameStateChanged(GameStateChanged event)
private void updateConfig()
{
this.alwaysOn = config.alwaysOn();
this.keybind = config.keybind();
this.holdkeybind = config.holdkeybind();
this.toggleKeyBind = config.toggleKeyBind();
this.holdKeyBind = config.holdKeyBind();
this.key = config.key();
this.dragDelay = config.dragDelay();
this.reqfocus = config.reqfocus();
Expand Down

0 comments on commit c54e518

Please sign in to comment.