mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-19 14:59:27 +00:00
Remove one-time config migration warnings as we don't have access to the logger at that stage
This commit is contained in:
@@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
package org.geysermc.geyser.configuration;
|
package org.geysermc.geyser.configuration;
|
||||||
|
|
||||||
import org.geysermc.geyser.GeyserImpl;
|
|
||||||
import org.spongepowered.configurate.ConfigurateException;
|
import org.spongepowered.configurate.ConfigurateException;
|
||||||
import org.spongepowered.configurate.ConfigurationNode;
|
import org.spongepowered.configurate.ConfigurationNode;
|
||||||
import org.spongepowered.configurate.transformation.ConfigurationTransformation;
|
import org.spongepowered.configurate.transformation.ConfigurationTransformation;
|
||||||
@@ -106,27 +105,13 @@ public class ConfigMigrations {
|
|||||||
return new Object[]{ "gameplay", "max-visible-custom-skulls" };
|
return new Object[]{ "gameplay", "max-visible-custom-skulls" };
|
||||||
})
|
})
|
||||||
.addAction(path("emote-offhand-workaround"), (path, value) -> {
|
.addAction(path("emote-offhand-workaround"), (path, value) -> {
|
||||||
String previous = value.getString();
|
if (Objects.equals(value.getString(), "no-emotes")) {
|
||||||
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")) {
|
|
||||||
value.set(false);
|
value.set(false);
|
||||||
return new Object[]{ "gameplay", "show-emotes" };
|
return new Object[]{ "gameplay", "show-emotes" };
|
||||||
}
|
}
|
||||||
return null;
|
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
|
// Advanced section
|
||||||
.addAction(path("cache-images"), moveTo("advanced"))
|
.addAction(path("cache-images"), moveTo("advanced"))
|
||||||
.addAction(path("scoreboard-packet-threshold"), moveTo("advanced"))
|
.addAction(path("scoreboard-packet-threshold"), moveTo("advanced"))
|
||||||
|
|||||||
Reference in New Issue
Block a user