-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from BrendonCurmi/ISSUE1
Fix ArcPlates fast click dupe glitch
- Loading branch information
Showing
5 changed files
with
82 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package me.FusionDev.FusionPixelmon.apis; | ||
|
||
public class Time { | ||
|
||
/** | ||
* Asynchronously executes the specified runnable a time 'millis' milliseconds later. | ||
* @param runnable the runnable. | ||
* @param millis the delay in milliseconds before executing. | ||
*/ | ||
public static void setTimeout(Runnable runnable, int millis) { | ||
new Thread(() -> { | ||
try { | ||
Thread.sleep(millis); | ||
runnable.run(); | ||
} catch (InterruptedException ex) { | ||
ex.printStackTrace(); | ||
} | ||
}).start(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters