Fix error on latest paper while copying entities (#2006)

This commit is contained in:
Pierre Maurice Schwang 2022-11-10 18:45:35 +01:00 committed by GitHub
parent 1aa213fb4c
commit 4c2119e404
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,6 +188,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter {
ServerLevel.class.getDeclaredMethod("getEntityLookup");
chunkRewrite = true;
PAPER_CHUNK_GEN_ALL_ENTITIES = ChunkEntitySlices.class.getDeclaredMethod("getAllEntities");
PAPER_CHUNK_GEN_ALL_ENTITIES.setAccessible(true);
} catch (NoSuchMethodException ignored) {
chunkRewrite = false;
}