mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-24 16:31:28 +01:00
Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
commit
4cc0d2c1a2
@ -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