mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
net.minecraft.util.thread
This commit is contained in:
@@ -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);
|
Reference in New Issue
Block a user