Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 02:20:07 +01:00
Improve exception handling on adapter loading (#2277)
Dieser Commit ist enthalten in:
Ursprung
9be1a58bf3
Commit
152d870cdb
@ -215,14 +215,13 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
|
|||||||
} catch (NoSuchFieldException ignored) {
|
} catch (NoSuchFieldException ignored) {
|
||||||
}
|
}
|
||||||
POST_CHUNK_REWRITE = chunkRewrite;
|
POST_CHUNK_REWRITE = chunkRewrite;
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException | Error e) {
|
||||||
throw e;
|
throw e;
|
||||||
} catch (Throwable rethrow) {
|
} catch (Exception e) {
|
||||||
rethrow.printStackTrace();
|
throw new RuntimeException(e);
|
||||||
throw new RuntimeException(rethrow);
|
|
||||||
}
|
}
|
||||||
MethodHandle craftChunkGetHandle;
|
MethodHandle craftChunkGetHandle;
|
||||||
final MethodType type = methodType(ChunkAccess.class);
|
final MethodType type = methodType(LevelChunk.class);
|
||||||
try {
|
try {
|
||||||
craftChunkGetHandle = lookup.findVirtual(CraftChunk.class, "getHandle", type);
|
craftChunkGetHandle = lookup.findVirtual(CraftChunk.class, "getHandle", type);
|
||||||
} catch (NoSuchMethodException | IllegalAccessException e) {
|
} catch (NoSuchMethodException | IllegalAccessException e) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren