diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-08-04 18:29:48 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-08-04 18:29:48 +1000 |
commit | a0d482a7f23bd959ca26466de024d779ec6bf352 (patch) | |
tree | bd08d0cc0ddd57cd7d284853e114ad1bdcb4ff77 /src/Java/miscutil/core/handler/events | |
parent | 67adecfcbb9ffbcc5c111949d1689162605c2703 (diff) | |
download | GT5-Unofficial-a0d482a7f23bd959ca26466de024d779ec6bf352.tar.gz GT5-Unofficial-a0d482a7f23bd959ca26466de024d779ec6bf352.tar.bz2 GT5-Unofficial-a0d482a7f23bd959ca26466de024d779ec6bf352.zip |
+ 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.
Diffstat (limited to 'src/Java/miscutil/core/handler/events')
-rw-r--r-- | src/Java/miscutil/core/handler/events/LoginEventHandler.java | 9 |
1 files changed, 5 insertions, 4 deletions
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(); } |