Add back in the fingerprint check messages (now that the build system is signing jar files again)
This commit is contained in:
parent
0961c35ab0
commit
fecefc230a
|
@ -8,7 +8,9 @@ import com.pahimar.ee3.init.ModBlocks;
|
|||
import com.pahimar.ee3.init.ModItems;
|
||||
import com.pahimar.ee3.network.PacketHandler;
|
||||
import com.pahimar.ee3.proxy.IProxy;
|
||||
import com.pahimar.ee3.reference.Messages;
|
||||
import com.pahimar.ee3.reference.Reference;
|
||||
import com.pahimar.ee3.util.LogHelper;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.Mod.EventHandler;
|
||||
import cpw.mods.fml.common.Mod.Instance;
|
||||
|
@ -32,7 +34,16 @@ public class EquivalentExchange3
|
|||
@EventHandler
|
||||
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
|
||||
if (Reference.FINGERPRINT.equals("@FINGERPRINT@"))
|
||||
{
|
||||
LogHelper.info(Messages.NO_FINGERPRINT_MESSAGE);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogHelper.warn(Messages.INVALID_FINGERPRINT_MESSAGE);
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
|
|
@ -3,4 +3,8 @@ package com.pahimar.ee3.reference;
|
|||
public class Messages
|
||||
{
|
||||
public static final String UPGRADES_CHESTS = "tooltip.ee3:upgradesPrefix";
|
||||
|
||||
/* Fingerprint check related constants */
|
||||
public static final String NO_FINGERPRINT_MESSAGE = "The copy of Equivalent Exchange 3 that you are running is a development version of the mod, and as such may be unstable and/or incomplete.";
|
||||
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.";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue