Antidrag: combine nested if statements

This commit is contained in:
sdburns1998
2019-07-07 02:04:53 +02:00
parent 2c2f0626a7
commit 5a0df39b4d

View File

@@ -160,15 +160,12 @@ public class AntiDragPlugin extends Plugin
@Subscribe
public void onFocusChanged(FocusChanged focusChanged)
{
if (!this.alwaysOn)
{
if (!focusChanged.isFocused() && this.reqfocus)
if (!this.alwaysOn && !focusChanged.isFocused() && this.reqfocus)
{
client.setInventoryDragDelay(DEFAULT_DELAY);
overlayManager.remove(overlay);
}
}
}
private final HotkeyListener hotkeyListener = new HotkeyListener(() -> this.key)
{