wtf 1
This commit is contained in:
parent
50219cc4a9
commit
b1c655bbc7
@ -80,7 +80,7 @@ public class BukkitService implements SettingsDependent {
|
|||||||
*/
|
*/
|
||||||
public void scheduleSyncTaskFromOptionallyAsyncTask(Runnable task) {
|
public void scheduleSyncTaskFromOptionallyAsyncTask(Runnable task) {
|
||||||
if (Bukkit.isPrimaryThread()) {
|
if (Bukkit.isPrimaryThread()) {
|
||||||
runTask(task);
|
task.run();
|
||||||
} else {
|
} else {
|
||||||
scheduleSyncDelayedTask(task);
|
scheduleSyncDelayedTask(task);
|
||||||
}
|
}
|
||||||
@ -93,8 +93,8 @@ public class BukkitService implements SettingsDependent {
|
|||||||
* @throws IllegalArgumentException if plugin is null
|
* @throws IllegalArgumentException if plugin is null
|
||||||
* @throws IllegalArgumentException if task is null
|
* @throws IllegalArgumentException if task is null
|
||||||
*/
|
*/
|
||||||
public void runTask(Runnable task) {
|
public BukkitTask runTask(Runnable task) {
|
||||||
getScheduler().runTask(task);
|
return Bukkit.getScheduler().runTask(authMe, task);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void runTask(Entity entity, Runnable task) {
|
public void runTask(Entity entity, Runnable task) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user