1
0
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:
onebeastchris
2025-08-26 17:51:48 +02:00
parent 50588b51ff
commit 1761aeb977
4 changed files with 8 additions and 3 deletions

View File

@@ -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;

View File

@@ -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();

View File

@@ -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("""

View File

@@ -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;