Run Version Check only on clients

This commit is contained in:
Frank 2022-07-22 00:24:57 +02:00
parent 69d472d107
commit 9cb54346a2
2 changed files with 5 additions and 3 deletions

View file

@ -80,7 +80,9 @@ public class BCLib implements ModInitializer {
Configs.save();
WorldsTogether.FORCE_SERVER_TO_BETTERX_PRESET = Configs.SERVER_CONFIG.forceBetterXPreset();
VersionChecker.registerMod(MOD_ID);
if (isClient()) {
VersionChecker.registerMod(MOD_ID);
}
if (false && isDevEnvironment()) {
BCLBiome theYellow = BCLBiomeBuilder

View file

@ -74,7 +74,7 @@
"bclib.updates.description": "Some of the installed mods are outdated. We continually improve and extend our content as well as provide important bug-fixes.\nPlease consider updating your mods using the provided links below.",
"bclib.welcome.title": "Welcome to BetterX",
"bclib.welcome.description": "... and a huge hearty **thank you** for downloading and playing our mods. We hope you enjoy them as much as we do.\n\nBefore we start, there are a few things we need to set up, so please continue reading the following boring part.",
"bclib.welcome.donation": "If, you enjoy our Mods as much as we hope you do, please consider a small Donation :)",
"bclib.welcome.donation": "If you enjoy our Mods as much as we hope you do, please consider a small Donation :)",
"bclib.welcome.updater.description": "BCLib includes a simple version checker that can notify you when new updates of our mods are available. To do this, we need to read a resource from one of our web servers. To process the request, together with your IP address (we need to know where to send the response) we also send your Minecraft version (so we can choose the right mod version). The transmitted data will never be used or processed by us for other purposes, but must be stored in our log files for 4 weeks for legal reasons.",
"bclib.welcome.updater.title": "Enable Version Check"
}