aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/MiscUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/miscutil/MiscUtils.java')
-rw-r--r--src/Java/miscutil/MiscUtils.java31
1 files changed, 3 insertions, 28 deletions
diff --git a/src/Java/miscutil/MiscUtils.java b/src/Java/miscutil/MiscUtils.java
index 49cd448dc5..545e29a584 100644
--- a/src/Java/miscutil/MiscUtils.java
+++ b/src/Java/miscutil/MiscUtils.java
@@ -22,8 +22,6 @@ import miscutil.core.item.general.RF2EU_Battery;
import miscutil.core.lib.CORE;
import miscutil.core.util.Utils;
import miscutil.xmod.gregtech.HANDLER_GT;
-import net.minecraftforge.client.event.RenderWorldLastEvent;
-import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.common.config.Configuration;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
@@ -34,7 +32,6 @@ import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.event.FMLServerStoppingEvent;
-import cpw.mods.fml.common.eventhandler.SubscribeEvent;
@Mod(modid=CORE.MODID, name=CORE.name, version=CORE.VERSION, dependencies="required-after:Forge; after:IC2; after:psychedelicraft; after:gregtech; after:Forestry; after:MagicBees; after:CoFHCore; after:Growthcraft; after:Railcraft; after:CompactWindmills; after:ForbiddenMagic; after:MorePlanet; after:PneumaticCraft; after:ExtraUtilities; after:Thaumcraft; after:rftools; after:simplyjetpacks; after:BigReactors; after:EnderIO;")
public class MiscUtils
@@ -85,7 +82,7 @@ implements ActionListener
Utils.LOG_INFO("Loading "+CORE.name+" V"+CORE.VERSION);
FMLCommonHandler.instance().bus().register(new LoginEventHandler());
- System.out.println("Login Handler Initialized");
+ Utils.LOG_INFO("Login Handler Initialized");
handleConfigFile(event);
proxy.registerTileEntities();
@@ -99,31 +96,10 @@ implements ActionListener
public void init(FMLInitializationEvent event)
{
proxy.init(event);
- MinecraftForge.EVENT_BUS.register(this);
- FMLCommonHandler.instance().bus().register(this);
+ //MinecraftForge.EVENT_BUS.register(this);
+ //FMLCommonHandler.instance().bus().register(this);
proxy.registerNetworkStuff();
}
-
- @SubscribeEvent
- public void renderWorldLastEvent(RenderWorldLastEvent evt){
- /*double doubleX = Minecraft.getMinecraft().thePlayer.posX - 0.5;
- double doubleY = Minecraft.getMinecraft().thePlayer.posY + 0.1;
- double doubleZ = Minecraft.getMinecraft().thePlayer.posZ - 0.5;
-
- GL11.glPushMatrix();
- GL11.glTranslated(-doubleX, -doubleY, -doubleZ);
- GL11.glColor3ub((byte)255,(byte)0,(byte)0);
- float mx = (float) Minecraft.getMinecraft().thePlayer.posX;
- float my = (float) Minecraft.getMinecraft().thePlayer.posY;
- float mz = (float) Minecraft.getMinecraft().thePlayer.posZ;
- GL11.glBegin(GL11.GL_LINES);
- GL11.glVertex3f(mx+0.4f,my,mz+0.4f);
- GL11.glVertex3f(mx-0.4f,my,mz-0.4f);
- GL11.glVertex3f(mx+0.4f,my,mz-0.4f);
- GL11.glVertex3f(mx-0.4f,my,mz+0.4f);
- GL11.glEnd();
- GL11.glPopMatrix();*/
- }
//Post-Init
@Mod.EventHandler
@@ -135,7 +111,6 @@ implements ActionListener
public void serverStarting(FMLServerStartingEvent event)
{
event.registerServerCommand(new CommandMath());
-
}
@Mod.EventHandler