mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
[ci skip] add deprecation warning
This commit is contained in:
parent
e5167971f4
commit
7fbf68dff3
1 changed files with 6 additions and 0 deletions
|
|
@ -77,6 +77,12 @@ public class UpdateHandler {
|
|||
if (hadUpdate) {
|
||||
CustomAnvil.instance.getLogger().info("Updating Done !");
|
||||
}
|
||||
|
||||
if(current.major() == 1 && current.minor() < 21) {
|
||||
var logger = CustomAnvil.instance.getLogger();
|
||||
logger.warning("Your are running an old version of minecraft (lower than 1.21)");
|
||||
logger.warning("Custom Anvil will stop supporting this version on the first of july 2026");
|
||||
}
|
||||
}
|
||||
|
||||
private static void finishConfiguration(@Nonnull String newVersion, @Nonnull Set<ConfigHolder> toSave) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue