From fbadfa574a2de60f426edda7237e92976b36a76f Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Mon, 17 Nov 2025 01:30:03 +0100 Subject: [PATCH] Remove one-time config migration warnings as we don't have access to the logger at that stage --- .../geyser/configuration/ConfigMigrations.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/core/src/main/java/org/geysermc/geyser/configuration/ConfigMigrations.java b/core/src/main/java/org/geysermc/geyser/configuration/ConfigMigrations.java index c93ddfd89..fec9f1c55 100644 --- a/core/src/main/java/org/geysermc/geyser/configuration/ConfigMigrations.java +++ b/core/src/main/java/org/geysermc/geyser/configuration/ConfigMigrations.java @@ -25,7 +25,6 @@ package org.geysermc.geyser.configuration; -import org.geysermc.geyser.GeyserImpl; import org.spongepowered.configurate.ConfigurateException; import org.spongepowered.configurate.ConfigurationNode; import org.spongepowered.configurate.transformation.ConfigurationTransformation; @@ -106,27 +105,13 @@ public class ConfigMigrations { return new Object[]{ "gameplay", "max-visible-custom-skulls" }; }) .addAction(path("emote-offhand-workaround"), (path, value) -> { - String previous = value.getString(); - if (!Objects.equals(previous, "disabled") && GeyserImpl.getInstance() != null) { - GeyserImpl.getInstance().getLogger().warning("The emote-offhand-workaround option has been removed from Geyser. If you still wish to have this functionality, use this Geyser extension: https://github.com/GeyserMC/EmoteOffhandExtension/"); - } - if (Objects.equals(previous, "no-emotes")) { + if (Objects.equals(value.getString(), "no-emotes")) { value.set(false); return new Object[]{ "gameplay", "show-emotes" }; } return null; }) - // For the warning! - .addAction(path("allow-third-party-capes"), (node, value) -> { - GeyserImpl.getInstance().getLogger().warning("Third-party ears/capes have been removed from Geyser. If you still wish to have this functionality, use this Geyser extension: https://github.com/GeyserMC/ThirdPartyCosmetics"); - return null; - }) - .addAction(path("allow-third-party-ears"), (node, value) -> { - GeyserImpl.getInstance().getLogger().warning("Third-party ears/capes have been removed from Geyser. If you still wish to have this functionality, use this Geyser extension: https://github.com/GeyserMC/ThirdPartyCosmetics"); - return null; - }) - // Advanced section .addAction(path("cache-images"), moveTo("advanced")) .addAction(path("scoreboard-packet-threshold"), moveTo("advanced"))