From a0d482a7f23bd959ca26466de024d779ec6bf352 Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Thu, 4 Aug 2016 18:29:48 +1000 Subject: + Added light dependency on LibShapeDraw-1.3.2-dev.jar + Added debug rendering to multiblock code, to help assist with assembly. - Removed Sinter Furnace load code, in prep. for release. - Disabled the event handler for Logins, no more free Raisin Bread! % Changed a lot of utility methods into their own class, MathUtils. --- src/Java/miscutil/core/handler/COMPAT_HANDLER.java | 3 +-- src/Java/miscutil/core/handler/events/LoginEventHandler.java | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Java/miscutil/core/handler') diff --git a/src/Java/miscutil/core/handler/COMPAT_HANDLER.java b/src/Java/miscutil/core/handler/COMPAT_HANDLER.java index 6ffb6c543b..174b9f005e 100644 --- a/src/Java/miscutil/core/handler/COMPAT_HANDLER.java +++ b/src/Java/miscutil/core/handler/COMPAT_HANDLER.java @@ -27,7 +27,6 @@ import miscutil.core.handler.registration.gregtech.GregtechIndustrialElectrolyze import miscutil.core.handler.registration.gregtech.GregtechIndustrialMacerator; import miscutil.core.handler.registration.gregtech.GregtechIndustrialMassFabricator; import miscutil.core.handler.registration.gregtech.GregtechIndustrialPlatePress; -import miscutil.core.handler.registration.gregtech.GregtechIndustrialSinter; import miscutil.core.handler.registration.gregtech.GregtechIndustrialWiremill; import miscutil.core.handler.registration.gregtech.GregtechIronBlastFurnace; import miscutil.core.handler.registration.gregtech.GregtechRocketFuelGenerator; @@ -94,7 +93,7 @@ public class COMPAT_HANDLER { GregtechIndustrialMacerator.run(); GregtechIndustrialWiremill.run(); GregtechIndustrialMassFabricator.run(); - GregtechIndustrialSinter.run(); + //GregtechIndustrialSinter.run(); GregtechSolarGenerators.run(); } diff --git a/src/Java/miscutil/core/handler/events/LoginEventHandler.java b/src/Java/miscutil/core/handler/events/LoginEventHandler.java index bfc331f5e3..9c3e012825 100644 --- a/src/Java/miscutil/core/handler/events/LoginEventHandler.java +++ b/src/Java/miscutil/core/handler/events/LoginEventHandler.java @@ -5,6 +5,7 @@ import java.util.UUID; import miscutil.core.item.ModItems; import miscutil.core.util.Utils; import miscutil.core.util.item.UtilsItems; +import miscutil.core.util.math.MathUtils; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; @@ -50,15 +51,15 @@ public class LoginEventHandler { //ImQ009 is a legend. if (localPlayerRef.getCommandSenderName().toLowerCase().equalsIgnoreCase("ImQ009")){ Utils.messagePlayer(localPlayerRef, "Enjoy some complimentary Raisin Bread."); - localPlayerRef.inventory.addItemStackToInventory(UtilsItems.getSimpleStack(ModItems.itemIngotRaisinBread, Utils.randInt(1, 5))); + localPlayerRef.inventory.addItemStackToInventory(UtilsItems.getSimpleStack(ModItems.itemIngotRaisinBread, MathUtils.randInt(1, 5))); } if (localPlayerRef.getCommandSenderName().toLowerCase().contains("player")){ Utils.messagePlayer(localPlayerRef, "Enjoy some complimentary Raisin Bread."); - localPlayerRef.inventory.addItemStackToInventory(UtilsItems.getSimpleStack(ModItems.itemIngotRaisinBread, Utils.randInt(1, 5))); + localPlayerRef.inventory.addItemStackToInventory(UtilsItems.getSimpleStack(ModItems.itemIngotRaisinBread, MathUtils.randInt(1, 5))); } - Thread.sleep(1000*60*Utils.randInt(15, 90)); + Thread.sleep(1000*60*MathUtils.randInt(15, 90)); } catch (InterruptedException ie) { Utils.LOG_INFO("Santa Mode Disabled."); } @@ -68,7 +69,7 @@ public class LoginEventHandler { } }; - t.start(); + //t.start(); } -- cgit