mirror of
https://github.com/GTNewHorizons/MouseTweaks.git
synced 2026-11-28 07:35:50 +00:00
Correct the formatting.
This commit is contained in:
1 parent
5a3a0587c5
commit
f7390768cf
2 files changed
+14
-21
No files matched your search
+2
-2
@@ -1,3 +1,3 @@
|
||||
#Build Number for ANT. Do not edit!
|
||||
#Thu Jun 05 17:29:49 MSK 2014
|
||||
build.number=181
|
||||
#Thu Jun 05 18:08:30 MSK 2014
|
||||
build.number=182
|
||||
@@ -5,30 +5,23 @@ import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
|
||||
import yalter.mousetweaks.Constants;
|
||||
import yalter.mousetweaks.Main;
|
||||
|
||||
@Mod(modid = Constants.MOD_ID, name = Constants.MOD_NAME, version = Constants.MOD_VERSION, useMetadata = true)
|
||||
public class MouseTweaksForge {
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event)
|
||||
{
|
||||
Main.initialise(Constants.EntryPoint.FORGE);
|
||||
@Mod.EventHandler
|
||||
public void init(FMLInitializationEvent event) {
|
||||
Main.initialise(Constants.EntryPoint.FORGE);
|
||||
|
||||
if (Main.useForge)
|
||||
{
|
||||
FMLCommonHandler.instance().bus().register(this);
|
||||
}
|
||||
}
|
||||
if (Main.useForge)
|
||||
FMLCommonHandler.instance().bus().register(this);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onRenderTick(TickEvent.RenderTickEvent event)
|
||||
{
|
||||
// The useForge check is redundant here since the OnTick method cannot change in the runtime (at the time of writing this comment).
|
||||
if (Main.useForge && event.phase == TickEvent.Phase.START)
|
||||
{
|
||||
Main.onUpdateInGame();
|
||||
}
|
||||
}
|
||||
@SubscribeEvent
|
||||
public void onRenderTick(TickEvent.RenderTickEvent event) {
|
||||
// The useForge check is redundant here since the OnTick method cannot change in the runtime (at the time of writing this comment).
|
||||
if (Main.useForge && event.phase == TickEvent.Phase.START)
|
||||
Main.onUpdateInGame();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user