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,13 +160,10 @@ public class AntiDragPlugin extends Plugin
@Subscribe
public void onFocusChanged(FocusChanged focusChanged)
{
if (!this.alwaysOn)
if (!this.alwaysOn && !focusChanged.isFocused() && this.reqfocus)
{
if (!focusChanged.isFocused() && this.reqfocus)
{
client.setInventoryDragDelay(DEFAULT_DELAY);
overlayManager.remove(overlay);
}
client.setInventoryDragDelay(DEFAULT_DELAY);
overlayManager.remove(overlay);
}
}