mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Work around relocation of fastutil reflection call
This commit is contained in:
parent
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) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user