From b7ffa0f1d8a5fba0fe12dd2a35b396b324ef29ca Mon Sep 17 00:00:00 2001 From: Pheonix Date: Sun, 19 Jun 2022 18:23:38 +0100 Subject: [PATCH] some garbage i almost forgot --- .../java/com/hbm/handler/guncfg/GunPoweredFactory.java | 7 +++++++ src/main/java/com/hbm/render/util/RenderInfoSystem.java | 5 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/hbm/handler/guncfg/GunPoweredFactory.java b/src/main/java/com/hbm/handler/guncfg/GunPoweredFactory.java index 24b5574df..1ff48ac83 100644 --- a/src/main/java/com/hbm/handler/guncfg/GunPoweredFactory.java +++ b/src/main/java/com/hbm/handler/guncfg/GunPoweredFactory.java @@ -107,6 +107,7 @@ public class GunPoweredFactory { bullet.firingRate = 20; bullet.modeName = "weapon.elecGun.glass_cannon.radio"; bullet.chatColour = EnumChatFormatting.DARK_RED; + bullet.setToFire(200); return bullet; } @@ -135,6 +136,7 @@ public class GunPoweredFactory { bullet.firingRate = 15; bullet.modeName = "weapon.elecGun.glass_cannon.micro"; bullet.chatColour = EnumChatFormatting.RED; + bullet.setToFire(200); return bullet; } @@ -163,6 +165,7 @@ public class GunPoweredFactory { bullet.firingRate = 10; bullet.modeName = "weapon.elecGun.glass_cannon.ir"; bullet.chatColour = EnumChatFormatting.RED; + bullet.setToFire(100); return bullet; } @@ -191,6 +194,7 @@ public class GunPoweredFactory { bullet.firingRate = 5; bullet.modeName = "weapon.elecGun.glass_cannon.visible"; bullet.chatColour = EnumChatFormatting.GREEN; + bullet.setToFire(100); return bullet; } @@ -219,6 +223,7 @@ public class GunPoweredFactory { bullet.firingRate = 3; bullet.modeName = "weapon.elecGun.glass_cannon.uv"; bullet.chatColour = EnumChatFormatting.AQUA; + bullet.setToFire(100); return bullet; } @@ -247,6 +252,7 @@ public class GunPoweredFactory { bullet.firingRate = 2; bullet.modeName = "weapon.elecGun.glass_cannon.xray"; bullet.chatColour = EnumChatFormatting.BLUE; + bullet.setToFire(40); return bullet; } @@ -275,6 +281,7 @@ public class GunPoweredFactory { bullet.firingRate = 1; bullet.modeName = "weapon.elecGun.glass_cannon.gamma"; bullet.chatColour = EnumChatFormatting.LIGHT_PURPLE; + bullet.setToFire(40); return bullet; } diff --git a/src/main/java/com/hbm/render/util/RenderInfoSystem.java b/src/main/java/com/hbm/render/util/RenderInfoSystem.java index 64864d24a..da618d194 100644 --- a/src/main/java/com/hbm/render/util/RenderInfoSystem.java +++ b/src/main/java/com/hbm/render/util/RenderInfoSystem.java @@ -50,10 +50,9 @@ public class RenderInfoSystem { if(event.type != ElementType.CROSSHAIRS) return; - if(this.messages.isEmpty()) { + if(this.messages.isEmpty()) return; - } - + Minecraft mc = Minecraft.getMinecraft(); ScaledResolution resolution = event.resolution;