Fingerprint check occurs prior to localizations being loaded in, so we cannot localize this text.

This commit is contained in:
pahimar 2013-04-07 21:52:25 -04:00
parent e89109513d
commit bfec19364b
3 changed files with 2 additions and 4 deletions

View file

@ -47,7 +47,6 @@ import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.common.registry.TickRegistry;
import cpw.mods.fml.relauncher.Side;
@ -76,7 +75,7 @@ public class EquivalentExchange3 {
public void invalidFingerprint(FMLFingerprintViolationEvent event) {
// Report (log) to the user that the version of Equivalent Exchange 3 they are using has been changed/tampered with
LogHelper.log(Level.SEVERE, LanguageRegistry.instance().getStringLocalization(Strings.INVALID_FINGERPRINT_MESSAGE));
LogHelper.log(Level.SEVERE, Strings.INVALID_FINGERPRINT_MESSAGE);
}
@ServerStarting

View file

@ -16,7 +16,7 @@ public class Strings {
public static final String FALSE = "false";
/* Fingerprint check related constants */
public static final String INVALID_FINGERPRINT_MESSAGE = "fingerprint_check.invalid";
public static final String INVALID_FINGERPRINT_MESSAGE = "The copy of Equivalent Exchange 3 that you are running has been modified from the original, and unpredictable things may happen. Please consider re-downloading the original version of the mod.";
/* Version check related constants */
public static final String VERSION_CHECK_INIT_LOG_MESSAGE = "version.init_log_message";

View file

@ -27,7 +27,6 @@
<entry key="container.alchemicalChest">Alchemical Chest</entry>
<entry key="container.alchemicalBag">Alchemical Bag</entry>
<entry key="itemGroup.EE3">Equivalent Exchange 3</entry>
<entry key="fingerprint_check.invalid">The copy of Equivalent Exchange 3 that you are running has been modified from the original, and unpredictable things may happen. Please consider re-downloading the original version of the mod.</entry>
<entry key="version.init_log_message">Initializing remote version check against remote version authority, located at</entry>
<entry key="version.uninitialized">Remote version check failed to initialize properly</entry>
<entry key="version.current">Currently using the most up to date version (@REMOTE_MOD_VERSION@) of Equivalent Exchange 3 for @MINECRAFT_VERSION@</entry>