mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 03:07:20 +00:00
Added brackets to if statement
This commit is contained in:
1 parent
cbc5c3cc7d
commit
893f384d33
1 file changed
+3
-1
@@ -64,7 +64,9 @@ public final class Time {
|
||||
*/
|
||||
public static boolean sleep(SleepCondition conn, int timeout, int minimumTimeout) {
|
||||
long start = System.currentTimeMillis();
|
||||
if(!sleep(conn, timeout)) return false;
|
||||
if(!sleep(conn, timeout)) {
|
||||
return false;
|
||||
}
|
||||
long t;
|
||||
if((t = System.currentTimeMillis() - start) < minimumTimeout) {
|
||||
Time.sleep((int)(minimumTimeout - t));
|
||||
|
||||
Reference in new issue
Block a user