From e4329a53a1b9952a56efed6eaa54ca30af0181ef Mon Sep 17 00:00:00 2001 From: noil Date: Sat, 23 Jan 2021 19:47:07 -0500 Subject: [PATCH] NewChunks: Added height, NoLag: Enabled particles by default(big fps improvement using this!) --- .../seppuku/impl/module/render/NewChunksModule.java | 9 +++++---- .../seppuku/impl/module/render/NoLagModule.java | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/render/NewChunksModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/render/NewChunksModule.java index 049daf0..03daa23 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/render/NewChunksModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/render/NewChunksModule.java @@ -28,7 +28,8 @@ public final class NewChunksModule extends Module { public final Value mode = new Value("Mode", new String[]{"M", "type", "t"}, "Select a mode to use to draw the chunk visual.", Mode.PLANE); public final Value color = new Value("Color", new String[]{"color", "c"}, "Change the color of the chunk visual.", new Color(255, 255, 255)); public final Value alpha = new Value("Alpha", new String[]{"Alp", "Opacity", "a", "o"}, "Edit the alpha of the chunk visual.", 127, 1, 255, 1); - public final Value width = new Value("Width", new String[]{"W", "size", "s"}, "Edit the width chunk visual.", 1.5f, 0.1f, 5.0f, 0.1f); + public final Value lineWidth = new Value("LineWidth", new String[]{"Width", "Line-Width", "line", "size", "s", "l"}, "Edit the line width chunk visual.", 1.5f, 0.1f, 5.0f, 0.1f); + public final Value height = new Value("Height", new String[]{"H"}, "Edit the height of the chunk visual.", 3f, 1f, 25f, 1f); public enum Mode { BOX, OUTLINE, PLANE @@ -85,17 +86,17 @@ public final class NewChunksModule extends Module { double x = chunkData.x - mc.getRenderManager().viewerPosX; double y = -mc.getRenderManager().viewerPosY; double z = chunkData.z - mc.getRenderManager().viewerPosZ; - final AxisAlignedBB chunkBB = new AxisAlignedBB(0, 0, 0, 16, 2, 16); + final AxisAlignedBB chunkBB = new AxisAlignedBB(0, 0, 0, 16, this.height.getValue(), 16); switch (this.mode.getValue()) { case BOX: RenderUtil.drawFilledBox(x, y, z, chunkBB, ColorUtil.changeAlpha(color, this.alpha.getValue())); break; case OUTLINE: - RenderUtil.drawBoundingBox(x, y, z, chunkBB, this.width.getValue(), color); + RenderUtil.drawBoundingBox(x, y, z, chunkBB, this.lineWidth.getValue(), color); break; case PLANE: - RenderUtil.drawPlane(x, y, z, new AxisAlignedBB(0, 0, 0, 16, 1, 16), this.width.getValue(), color); + RenderUtil.drawPlane(x, y, z, chunkBB, this.lineWidth.getValue(), color); break; } } diff --git a/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java b/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java index ab166e0..16f73ea 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java +++ b/src/main/java/me/rigamortis/seppuku/impl/module/render/NoLagModule.java @@ -39,8 +39,8 @@ public final class NoLagModule extends Module { public final Value pistons = new Value("Pistons", new String[]{"Piston", "p"}, "Choose to enable the piston lag fix. Disables pistons from rendering.", false); public final Value slimes = new Value("Slimes", new String[]{"Slime", "sl"}, "Choose to enable the slime lag fix. Disables slimes from spawning.", false); public final Value items = new Value("Items", new String[]{"Item", "i"}, "Disables the rendering of items.", false); - public final Value particles = new Value("Particles", new String[]{"Part", "par"}, "Disables the spawning of all particles.", false); - public final Value sky = new Value("Sky", new String[]{"Skies", "ski"}, "Disables the rendering of the sky.", false); + public final Value particles = new Value("Particles", new String[]{"Part", "par"}, "Disables the spawning of all particles.", true); + public final Value sky = new Value("Sky", new String[]{"Skies", "ski"}, "Disables the rendering of the sky.", true); public final Value names = new Value("Names", new String[]{"Name", "n"}, "Disables the rendering of vanilla name-tags.", false); public final Value withers = new Value("Withers", new String[]{"Wither", "w"}, "Disables the rendering of withers.", false); public final Value skulls = new Value("Skulls", new String[]{"WitherSkull", "skulls", "skull", "ws"}, "Disables the rendering of flying wither skulls.", false);