Skip to content

Commit 8e5dd45

Browse files
committed
fix: neverlose shadow splashhhh
1 parent fbb8411 commit 8e5dd45

File tree

5 files changed

+33
-49
lines changed

5 files changed

+33
-49
lines changed

src/main/java/net/ccbluex/liquidbounce/features/module/modules/other/AutoAccount.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import net.minecraft.util.ChatComponentText
2727
import net.minecraft.util.Session
2828

2929
object AutoAccount :
30-
Module("AutoAccount", Category.CLIENT, subjective = true, gameDetecting = false) {
30+
Module("AutoAccount", Category.OTHER, Category.SubCategory.MISCELLANEOUS, subjective = true, gameDetecting = false) {
3131

3232
private val register by boolean("AutoRegister", true)
3333
private val login by boolean("AutoLogin", true)

src/main/java/net/ccbluex/liquidbounce/features/module/modules/other/PotionSpoof.kt renamed to src/main/java/net/ccbluex/liquidbounce/features/module/modules/player/PotionSpoof.kt

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
/*
2-
* FDPClient Hacked Client
3-
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
4-
* https://github.com/SkidderMC/FDPClient/
5-
*/
6-
package net.ccbluex.liquidbounce.features.module.modules.other
1+
package net.ccbluex.liquidbounce.features.module.modules.player
72

83
import net.ccbluex.liquidbounce.event.UpdateEvent
94
import net.ccbluex.liquidbounce.event.handler
105
import net.ccbluex.liquidbounce.features.module.Category
116
import net.ccbluex.liquidbounce.features.module.Module
12-
import net.minecraft.potion.Potion.*
7+
import net.minecraft.potion.Potion
138
import net.minecraft.potion.PotionEffect
149

15-
object PotionSpoof : Module("PotionSpoof", Category.PLAYER) {
10+
object PotionSpoof : Module("PotionSpoof", Category.PLAYER, Category.SubCategory.PLAYER_ASSIST) {
1611

1712
private val level by int("PotionLevel", 2, 1..5).onChanged {
1813
onDisable()
@@ -37,23 +32,23 @@ object PotionSpoof : Module("PotionSpoof", Category.PLAYER) {
3732
private val waterBreathingValue = boolean("WaterBreathing", false)
3833

3934
private val potionMap = mapOf(
40-
moveSpeed.id to speedValue,
41-
moveSlowdown.id to moveSlowDownValue,
42-
digSpeed.id to hasteValue,
43-
digSlowdown.id to digSlowDownValue,
44-
blindness.id to blindnessValue,
45-
damageBoost.id to strengthValue,
46-
jump.id to jumpBoostValue,
47-
weakness.id to weaknessValue,
48-
regeneration.id to regenerationValue,
49-
wither.id to witherValue,
50-
resistance.id to resistanceValue,
51-
fireResistance.id to fireResistanceValue,
52-
absorption.id to absorptionValue,
53-
healthBoost.id to healthBoostValue,
54-
poison.id to poisonValue,
55-
saturation.id to saturationValue,
56-
waterBreathing.id to waterBreathingValue
35+
Potion.moveSpeed.id to speedValue,
36+
Potion.moveSlowdown.id to moveSlowDownValue,
37+
Potion.digSpeed.id to hasteValue,
38+
Potion.digSlowdown.id to digSlowDownValue,
39+
Potion.blindness.id to blindnessValue,
40+
Potion.damageBoost.id to strengthValue,
41+
Potion.jump.id to jumpBoostValue,
42+
Potion.weakness.id to weaknessValue,
43+
Potion.regeneration.id to regenerationValue,
44+
Potion.wither.id to witherValue,
45+
Potion.resistance.id to resistanceValue,
46+
Potion.fireResistance.id to fireResistanceValue,
47+
Potion.absorption.id to absorptionValue,
48+
Potion.healthBoost.id to healthBoostValue,
49+
Potion.poison.id to poisonValue,
50+
Potion.saturation.id to saturationValue,
51+
Potion.waterBreathing.id to waterBreathingValue
5752
)
5853

5954
override fun onDisable() {

src/main/java/net/ccbluex/liquidbounce/ui/client/clickgui/style/styles/nlclickgui/NeverloseGui.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class NeverloseGui : GuiScreen() {
4747
val configs = Configs()
4848
private val configManager = NeverloseConfigManager()
4949
private var bloomFramebuffer = Framebuffer(1, 1, false)
50+
private var previousDebugInfoState = false
5051

5152
init {
5253
INSTANCE = this
@@ -72,9 +73,16 @@ class NeverloseGui : GuiScreen() {
7273
override fun initGui() {
7374
super.initGui()
7475
configManager.refresh()
76+
previousDebugInfoState = mc.gameSettings.showDebugInfo
77+
mc.gameSettings.showDebugInfo = false
7578
alphaani = EaseInOutQuad(300, 0.6, Direction.FORWARDS)
7679
}
7780

81+
override fun onGuiClosed() {
82+
mc.gameSettings.showDebugInfo = previousDebugInfoState
83+
super.onGuiClosed()
84+
}
85+
7886
override fun drawScreen(mouseX: Int, mouseY: Int, partialTicks: Float) {
7987
GL11.glPushMatrix()
8088
if (loader && nlTabs.isNotEmpty()) {
@@ -253,4 +261,4 @@ class NeverloseGui : GuiScreen() {
253261
fontRenderer.drawString(str, x, y, color, false)
254262
}
255263
}
256-
}
264+
}

src/main/java/net/ccbluex/liquidbounce/ui/client/clickgui/style/styles/nlclickgui/RenderUtil.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package net.ccbluex.liquidbounce.ui.client.clickgui.style.styles.nlclickgui
22

33
import net.ccbluex.liquidbounce.ui.client.clickgui.style.styles.fdpdropdown.utils.render.DrRenderUtils
44
import net.ccbluex.liquidbounce.ui.client.clickgui.style.styles.nlclickgui.animations.Animation
5-
import net.ccbluex.liquidbounce.ui.client.clickgui.style.styles.nlclickgui.NlDebugOverlay
65
import net.ccbluex.liquidbounce.ui.client.clickgui.style.styles.nlclickgui.tessellate.Tessellation
76
import net.ccbluex.liquidbounce.ui.client.clickgui.style.styles.nlclickgui.tessellate.Tessellation.Companion.createExpanding
87
import net.ccbluex.liquidbounce.ui.font.fontmanager.api.FontRenderer
@@ -394,12 +393,8 @@ object RenderUtil {
394393
// artifacts around the window while it is dragged. Keep the framebuffer colour-only
395394
// to avoid the unintended shadow. Record the rebuild for the debug overlay so issues
396395
// are easier to diagnose on-device.
397-
NlDebugOverlay.noteFramebuffer(needsRebuild = true, hadDepthAttachment = hadDepthAttachment, hasDepthAfter = false)
398396
return Framebuffer(mc.displayWidth, mc.displayHeight, false)
399397
}
400-
401-
NlDebugOverlay.noteFramebuffer(needsRebuild = false, hadDepthAttachment = hadDepthAttachment, hasDepthAfter = hadDepthAttachment)
402-
403398
return framebuffer
404399
}
405400

src/main/java/net/ccbluex/liquidbounce/ui/client/clickgui/style/styles/nlclickgui/blur/BloomUtil.kt

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,15 @@ object BloomUtil {
1616
val gaussianBloom = ShaderUtil("fdpclient/shaders/bloom.frag")
1717
var framebuffer = Framebuffer(1, 1, false)
1818

19-
private val weightBuffer: FloatBuffer = BufferUtils.createFloatBuffer(256)
20-
2119
fun renderBlur(sourceTexture: Int, radius: Int, offset: Int) {
2220
framebuffer = RenderUtil.createFrameBuffer(framebuffer)
2321

24-
val depthEnabled = GL11.glIsEnabled(GL11.GL_DEPTH_TEST)
25-
val depthMask = GL11.glGetBoolean(GL11.GL_DEPTH_WRITEMASK)
26-
27-
GlStateManager.disableDepth()
28-
GlStateManager.depthMask(false)
2922
GlStateManager.enableAlpha()
3023
GlStateManager.alphaFunc(516, 0.0f)
3124
GlStateManager.enableBlend()
3225
OpenGlHelper.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ZERO)
3326

34-
weightBuffer.clear()
27+
val weightBuffer: FloatBuffer = BufferUtils.createFloatBuffer(256)
3528
for (i in 0..radius) {
3629
weightBuffer.put(calculateGaussianValue(i.toFloat(), radius.toFloat()))
3730
}
@@ -44,7 +37,7 @@ object BloomUtil {
4437
gaussianBloom.init()
4538
setupUniforms(radius, offset, 0, weightBuffer)
4639
RenderUtil.bindTexture(sourceTexture)
47-
ShaderUtil.drawQuads(0f, 0f, RenderUtil.mc.displayWidth.toFloat(), RenderUtil.mc.displayHeight.toFloat())
40+
ShaderUtil.drawQuads()
4841
gaussianBloom.unload()
4942
framebuffer.unbindFramebuffer()
5043

@@ -57,19 +50,12 @@ object BloomUtil {
5750
GL13.glActiveTexture(GL13.GL_TEXTURE0)
5851
RenderUtil.bindTexture(framebuffer.framebufferTexture)
5952

60-
ShaderUtil.drawQuads(0f, 0f, RenderUtil.mc.displayWidth.toFloat(), RenderUtil.mc.displayHeight.toFloat())
53+
ShaderUtil.drawQuads()
6154
gaussianBloom.unload()
6255

6356
GlStateManager.alphaFunc(516, 0.1f)
6457
GlStateManager.enableAlpha()
6558
GlStateManager.bindTexture(0)
66-
67-
GlStateManager.depthMask(depthMask)
68-
if (depthEnabled) {
69-
GlStateManager.enableDepth()
70-
} else {
71-
GlStateManager.disableDepth()
72-
}
7359
}
7460

7561
fun setupUniforms(radius: Int, directionX: Int, directionY: Int, weights: FloatBuffer) {

0 commit comments

Comments
 (0)