mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
net.minecraft.util.thread
This commit is contained in:
parent
6fdbfef28e
commit
649f20ca93
1 changed files with 5 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
--- a/net/minecraft/util/thread/BlockableEventLoop.java
|
--- a/net/minecraft/util/thread/BlockableEventLoop.java
|
||||||
+++ b/net/minecraft/util/thread/BlockableEventLoop.java
|
+++ b/net/minecraft/util/thread/BlockableEventLoop.java
|
||||||
@@ -82,6 +82,13 @@
|
@@ -83,6 +_,14 @@
|
||||||
runnable.run();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ public void scheduleOnMain(Runnable runnable) {
|
+ public void scheduleOnMain(Runnable runnable) {
|
||||||
+ // postToMainThread does not work the same as older versions of mc
|
+ // postToMainThread does not work the same as older versions of mc
|
||||||
|
@ -11,6 +11,7 @@
|
||||||
+ this.schedule(this.wrapRunnable(runnable));
|
+ this.schedule(this.wrapRunnable(runnable));
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
|
+
|
||||||
@Override
|
@Override
|
||||||
public void schedule(R runnable) {
|
public void schedule(R task) {
|
||||||
|
this.pendingRunnables.add(task);
|
Loading…
Reference in a new issue