Skip to content

Commit

Permalink
Log TickProfiler version and whether sponge is present.
Browse files Browse the repository at this point in the history
  • Loading branch information
LunNova committed Jun 25, 2016
1 parent f70e899 commit c347387
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/nallar/tickprofiler/minecraft/CoreMod.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package nallar.tickprofiler.minecraft;

import me.nallar.modpatcher.ModPatcher;
import nallar.tickprofiler.Log;
import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;

import java.util.*;
Expand Down Expand Up @@ -45,6 +46,8 @@ private boolean isSpongePresent() {

@Override
public void injectData(Map<String, Object> data) {
Log.info("TickProfiler v@MOD_VERSION@ coremod loading. Sponge present: " + isSpongePresent());

if (isSpongePresent())
ModPatcher.loadPatches(CoreMod.class.getResourceAsStream("/entityhook_sponge.xml"));
else
Expand Down

0 comments on commit c347387

Please sign in to comment.