Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Work around relocation of fastutil reflection call
Dieser Commit ist enthalten in:
Ursprung
9c0b187f31
Commit
8de26a0ad3
@ -23,7 +23,9 @@ public class BlockConnectionStorage extends StoredObject {
|
||||
|
||||
static {
|
||||
try {
|
||||
fastUtilLongObjectHashMap = Class.forName("it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap").getConstructor();
|
||||
//noinspection StringBufferReplaceableByString - prevent relocation
|
||||
String className = new StringBuilder("it").append(".unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap").toString();
|
||||
fastUtilLongObjectHashMap = Class.forName(className).getConstructor();
|
||||
Via.getPlatform().getLogger().info("Using FastUtil Long2ObjectOpenHashMap for block connections");
|
||||
} catch (ClassNotFoundException | NoSuchMethodException ignored) {
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren