From f1138a6e70f6bef4519f342e48a84fbd2b139f48 Mon Sep 17 00:00:00 2001 From: CR11MP <103106288+CR11MP@users.noreply.github.com> Date: Thu, 29 Sep 2022 16:40:58 +1200 Subject: [PATCH] kekw --- .../claudius/mod/gui/components/Component.java | 4 ++-- .../mod/modules/render/DeathEffect.java | 18 ------------------ 2 files changed, 2 insertions(+), 20 deletions(-) diff --git a/src/main/java/me/crimp/claudius/mod/gui/components/Component.java b/src/main/java/me/crimp/claudius/mod/gui/components/Component.java index 4397949..9478fc4 100644 --- a/src/main/java/me/crimp/claudius/mod/gui/components/Component.java +++ b/src/main/java/me/crimp/claudius/mod/gui/components/Component.java @@ -55,10 +55,10 @@ public void drawScreen(int mouseX, int mouseY, float partialTicks) { int color2 = ColorUtil.toARGB(ClickGuiModule.INSTANCE.BGRed.getValue(), ClickGuiModule.INSTANCE.BGGreen.getValue(), ClickGuiModule.INSTANCE.BGBlue.getValue(), ClickGuiModule.INSTANCE.BGalpha.getValue()); int color3 = ClickGuiModule.INSTANCE.BGalpha.getValue(); RenderUtil.drawRect(this.x - 1f, (float)this.y - 2.5f, this.x + 1f + this.width, this.y + this.height - 5.0f, ColorUtil.toARGB(255,255,255,255));//0x77FB4242, 0x77FB4242); - RenderUtil.drawRect(this.x, (float)this.y - 1.5f, this.x + this.width, this.y + this.height - 6, color);//0x77FB4242, 0x77FB4242); + RenderUtil.drawRect(this.x, (float)this.y - 1f, this.x + this.width, this.y + this.height - 6, color);//0x77FB4242, 0x77FB4242); if (this.open) { - RenderUtil.drawRect(this.x -1f, (float)this.y + 12.5f, this.x + this.width + 1f, this.open ? (float)(this.y + this.height + 1f) + totalItemHeight : (float)(this.y + this.height - 1), ColorUtil.toARGB(255,255,255,color3));//1996488704 + RenderUtil.drawRect(this.x -1f, (float)this.y + 12.5f, this.x + this.width + 1f, this.open ? (float)(this.y + this.height + 1f) + totalItemHeight : (float)(this.y + this.height - 1), ColorUtil.toARGB(255,255,255,255));//1996488704 RenderUtil.drawRect(this.x, (float)this.y + 12.5f, this.x + this.width, this.open ? (float)(this.y + this.height) + totalItemHeight : (float)(this.y + this.height - 1), color2);//1996488704 } Claudius.textManager.drawStringWithShadow(this.getName(), (float) this.x + 3.0f, (float) this.y - 4.0f - (float) ClickGui.getClickGui().getTextOffset(), -1); diff --git a/src/main/java/me/crimp/claudius/mod/modules/render/DeathEffect.java b/src/main/java/me/crimp/claudius/mod/modules/render/DeathEffect.java index 4e36a6e..6b8f02b 100644 --- a/src/main/java/me/crimp/claudius/mod/modules/render/DeathEffect.java +++ b/src/main/java/me/crimp/claudius/mod/modules/render/DeathEffect.java @@ -1,23 +1,15 @@ package me.crimp.claudius.mod.modules.render; -import me.crimp.claudius.managers.ColorManager; import me.crimp.claudius.mod.modules.Module; -import me.crimp.claudius.mod.modules.pvp.PopCounter; import me.crimp.claudius.mod.setting.Setting; -import me.crimp.claudius.utils.RenderUtil; import net.minecraft.entity.effect.EntityLightningBolt; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.SoundEvents; -import net.minecraft.util.math.Vec3d; - -import java.util.ArrayList; -import java.util.ConcurrentModificationException; public class DeathEffect extends Module { private static DeathEffect INSTANCE = new DeathEffect(); private final Setting sound = register(new Setting<>("sound", true, "")); - private final Setting numberSound = register(new Setting<>("numberSound", 1, 1, 10)); public DeathEffect() { super("DeathEffect", "DeathEffect", Category.RENDER, true, false, false); @@ -29,16 +21,6 @@ public static DeathEffect getInstance() { } return INSTANCE; } - - final Object sync = new Object(); - - @Override - public void onUpdate() { - if (mc.world == null) { - return; - } - } - public void onDeath(EntityPlayer player) { mc.world.spawnEntity(new EntityLightningBolt(mc.world, player.posX, player.posY, player.posZ, true)); if (this.sound.getValue()) {