mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-29 11:49:16 +00:00
Some minor touchups
This commit is contained in:
@@ -43,7 +43,6 @@ public final class Constants {
|
||||
public static final String MINECRAFT_SKIN_SERVER_URL = "https://textures.minecraft.net/texture/";
|
||||
|
||||
public static final int CONFIG_VERSION = 5;
|
||||
public static final int ADVANCED_CONFIG_VERSION = 1;
|
||||
|
||||
public static final int BSTATS_ID = 5273;
|
||||
|
||||
|
||||
@@ -214,7 +214,13 @@ public class GeyserImpl implements GeyserApi, EventRegistrar {
|
||||
|
||||
public void initialize() {
|
||||
// Setup encryption early so we don't start if we can't auth
|
||||
EncryptionUtils.getMojangPublicKey();
|
||||
if (!config().disableXboxAuth()) {
|
||||
try {
|
||||
EncryptionUtils.getMojangPublicKey();
|
||||
} catch (Throwable t) {
|
||||
GeyserImpl.getInstance().getLogger().error("Unable to set up encryption! This can be caused by your internet connection or the Minecraft api being unreachable. ", t);
|
||||
}
|
||||
}
|
||||
|
||||
long startupTime = System.currentTimeMillis();
|
||||
|
||||
|
||||
@@ -380,6 +380,7 @@ public interface GeyserConfig {
|
||||
This option specifies the amount of network threads in the Bedrock network event loop group.
|
||||
When set to -1, this count will be automatically determined based on the amount of available processors.""")
|
||||
@DefaultNumeric(-1)
|
||||
@NumericRange(from = -1, to = 100)
|
||||
int bedrockNetworkThreadCount();
|
||||
|
||||
@Comment("""
|
||||
|
||||
@@ -27,7 +27,6 @@ package org.geysermc.geyser.scoreboard.network.util;
|
||||
|
||||
import org.cloudburstmc.protocol.bedrock.packet.BedrockPacket;
|
||||
import org.geysermc.geyser.GeyserImpl;
|
||||
import org.geysermc.geyser.configuration.AdvancedConfig;
|
||||
import org.geysermc.geyser.configuration.GeyserConfig;
|
||||
import org.geysermc.geyser.session.GeyserSession;
|
||||
import org.geysermc.geyser.translator.protocol.PacketTranslator;
|
||||
|
||||
Reference in New Issue
Block a user