mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +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
|
||||
+++ b/net/minecraft/util/thread/BlockableEventLoop.java
|
||||
@@ -82,6 +82,13 @@
|
||||
runnable.run();
|
||||
@@ -83,6 +_,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ // Paper start
|
||||
+ public void scheduleOnMain(Runnable runnable) {
|
||||
+ // postToMainThread does not work the same as older versions of mc
|
||||
|
@ -11,6 +11,7 @@
|
|||
+ this.schedule(this.wrapRunnable(runnable));
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
||||
+
|
||||
@Override
|
||||
public void schedule(R runnable) {
|
||||
public void schedule(R task) {
|
||||
this.pendingRunnables.add(task);
|
Loading…
Reference in a new issue