Fix traceRenderer, Bukkit.getScheduler
Dieser Commit ist enthalten in:
Ursprung
29cb90f128
Commit
993e0bbe62
@ -45,7 +45,7 @@ class TNTTracer_15 {
|
|||||||
synchronizer.notifyAll();
|
synchronizer.notifyAll();
|
||||||
}
|
}
|
||||||
}, 1, 20);
|
}, 1, 20);
|
||||||
Thread traceRenderer = new Thread(() -> {
|
Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {
|
||||||
while (true) {
|
while (true) {
|
||||||
synchronized (synchronizer) {
|
synchronized (synchronizer) {
|
||||||
try {
|
try {
|
||||||
@ -57,9 +57,6 @@ class TNTTracer_15 {
|
|||||||
run();
|
run();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
traceRenderer.setDaemon(true);
|
|
||||||
traceRenderer.setName("Trace Renderer");
|
|
||||||
traceRenderer.start();
|
|
||||||
|
|
||||||
TNTTracer_15.tracerCallback = tracerCallback;
|
TNTTracer_15.tracerCallback = tracerCallback;
|
||||||
TNTTracer_15.tracerCallbackUpdatePoints = tracerCallbackUpdatePoints;
|
TNTTracer_15.tracerCallbackUpdatePoints = tracerCallbackUpdatePoints;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren