Skip to content

Commit

Permalink
Check if TP is installed
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Allan <rallanpcl@gmail.com>
  • Loading branch information
LunNova committed Jul 18, 2013
1 parent 7b46bab commit dd0e65a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/common/nallar/tickthreading/minecraft/TickThreading.java
Expand Up @@ -15,6 +15,7 @@

import cpw.mods.fml.common.IPlayerTracker;
import cpw.mods.fml.common.IScheduledTickHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.TickType;
import cpw.mods.fml.common.event.FMLInitializationEvent;
Expand Down Expand Up @@ -195,6 +196,10 @@ public void preInit(FMLPreInitializationEvent event) {

@Mod.ServerStarting
public void serverStarting(FMLServerStartingEvent event) {
if (Loader.isModLoaded("TickProfiler")) {
Log.severe("You're using TickProfiler with TT - TT includes TP's features. Please uninstall TickProfiler, it can cause problems with TT.");
Runtime.getRuntime().exit(1);
}
Log.severe(VersionUtil.versionString() + " is installed on this server!"
+ "\nIf anything breaks, check if it is still broken without TickThreading"
+ "\nWe don't want to annoy mod devs with issue reports caused by TickThreading."
Expand Down

0 comments on commit dd0e65a

Please sign in to comment.