mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2025-01-25 00:41:23 +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 {
|
static {
|
||||||
try {
|
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");
|
Via.getPlatform().getLogger().info("Using FastUtil Long2ObjectOpenHashMap for block connections");
|
||||||
} catch (ClassNotFoundException | NoSuchMethodException ignored) {
|
} catch (ClassNotFoundException | NoSuchMethodException ignored) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user