geforkt von Mirrors/Paper
net.minecraft.util.thread
Dieser Commit ist enthalten in:
Ursprung
6fdbfef28e
Commit
649f20ca93
@ -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);
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren