SPIGOT-7587: Remove fixes for now-resolved MC-142590 and MC-109346

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot
2024-03-10 09:20:54 +11:00
parent 39994359d1
commit 064818a555
3 changed files with 5 additions and 28 deletions

View File

@@ -731,16 +731,11 @@
try {
arraylist = Lists.newArrayList(NativeModuleLister.listModules());
@@ -1903,6 +2239,22 @@
@@ -1903,6 +2239,17 @@
}
+ // CraftBukkit start
+ @Override
+ public boolean isSameThread() {
+ return super.isSameThread() || this.isStopped(); // CraftBukkit - MC-142590
+ }
+
+ public boolean isDebugging() {
+ return false;
+ }
@@ -754,7 +749,7 @@
private void startMetricsRecordingTick() {
if (this.willStartRecordingMetrics) {
this.metricsRecorder = ActiveMetricsRecorder.createStarted(new ServerMetricsSamplersProvider(SystemUtils.timeSource, this.isDedicatedServer()), SystemUtils.timeSource, SystemUtils.ioPool(), new MetricsPersister("server"), this.onMetricsRecordingStopped, (path) -> {
@@ -2029,6 +2381,11 @@
@@ -2029,6 +2376,11 @@
}