forked from CCBlueX/LiquidBounce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LEGACY: Added NoAchievement Module & Small Tweaks (CCBlueX#2762)
- Added NoAchievement Module. - Added Liquidbounce Prefix to ClientUtils. - Fixed Killaura AutoBlock Render, it should not render blocking after if target is null.
- Loading branch information
1 parent
95b4ded
commit 71f8cf4
Showing
7 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/net/ccbluex/liquidbounce/features/module/modules/render/NoAchievement.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
* LiquidBounce Hacked Client | ||
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. | ||
* https://github.com/CCBlueX/LiquidBounce/ | ||
*/ | ||
package net.ccbluex.liquidbounce.features.module.modules.render | ||
|
||
import net.ccbluex.liquidbounce.features.module.Module | ||
import net.ccbluex.liquidbounce.features.module.ModuleCategory | ||
|
||
object NoAchievement : Module("NoAchievement", ModuleCategory.RENDER, gameDetecting = false) |
23 changes: 23 additions & 0 deletions
23
src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/gui/MixinGuiAchievement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package net.ccbluex.liquidbounce.injection.forge.mixins.gui; | ||
|
||
import net.ccbluex.liquidbounce.LiquidBounce; | ||
import net.ccbluex.liquidbounce.features.module.modules.render.NoAchievement; | ||
import net.minecraft.client.gui.achievement.GuiAchievement; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(GuiAchievement.class) | ||
public class MixinGuiAchievement { | ||
|
||
@Inject(method = "displayAchievement", at = @At("HEAD"), cancellable = true) | ||
private void injectAchievements(CallbackInfo ci) { | ||
final NoAchievement noachievement = (NoAchievement) LiquidBounce.INSTANCE.getModuleManager().getModule(NoAchievement.class); | ||
|
||
if (noachievement.getState()) { | ||
// Cancel Achievement GUI Packet | ||
ci.cancel(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,5 +66,8 @@ | |
"world.MixinChunk", | ||
"world.MixinWorld", | ||
"world.MixinWorldClient" | ||
], | ||
"client": [ | ||
"gui.MixinGuiAchievement" | ||
] | ||
} |