From 9cb54346a2367d5d647b4caecea9a5e3a9261a13 Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 22 Jul 2022 00:24:57 +0200 Subject: [PATCH] Run Version Check only on clients --- src/main/java/org/betterx/bclib/BCLib.java | 6 ++++-- src/main/resources/assets/bclib/lang/en_us.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/betterx/bclib/BCLib.java b/src/main/java/org/betterx/bclib/BCLib.java index 9a5b183c..0c1e40d0 100644 --- a/src/main/java/org/betterx/bclib/BCLib.java +++ b/src/main/java/org/betterx/bclib/BCLib.java @@ -80,8 +80,10 @@ 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 .start(makeID("the_yellow")) diff --git a/src/main/resources/assets/bclib/lang/en_us.json b/src/main/resources/assets/bclib/lang/en_us.json index af209875..1688594d 100644 --- a/src/main/resources/assets/bclib/lang/en_us.json +++ b/src/main/resources/assets/bclib/lang/en_us.json @@ -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" } \ No newline at end of file