chore: clean up debug prints and register HUD/intro on event bus
- Register HudManager and a fresh IntroAnimation on the event bus during ZenClient bootstrap so HUDs actually tick and the intro plays on first launch. - Strip leftover System.out.println debug breadcrumbs from NewClickGui, CategoryPanel, ModuleElement and the unused BUILD_TAG print in ModuleElement. - Drop the redundant 'initialized' static flag and the stray NewClickGui instance constructed in the class initializer; the Lombok @NonNull null check on render() was already enforced, so the hand-written guard goes too. - Remove the unused NumberSettingElement.sliderX field. - Replace Module.getBind() with a Lombok @Getter on the field. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This commit is contained in:
1 parent
5c8f97bff5
commit
891b7f3745
6 files changed
+8
-19
No files matched your search
@@ -11,6 +11,7 @@ import net.minecraftforge.fml.common.Mod;
|
||||
import shit.zen.event.EventBus;
|
||||
import shit.zen.event.EventTarget;
|
||||
import shit.zen.event.impl.TickEvent;
|
||||
import shit.zen.gui.IntroAnimation;
|
||||
import shit.zen.manager.CommandManager;
|
||||
import shit.zen.manager.ConfigManager;
|
||||
import shit.zen.manager.HudManager;
|
||||
@@ -88,10 +89,12 @@ public class ZenClient extends ClientBase {
|
||||
this.configManager = new ConfigManager();
|
||||
this.lagManager = new LagManager();
|
||||
this.targetManager = new TargetManager();
|
||||
this.eventBus.register(this.hudManager);
|
||||
this.eventBus.register(this.lagManager);
|
||||
this.eventBus.register(this.targetManager);
|
||||
this.eventBus.register(this);
|
||||
this.commandManager.initCommands();
|
||||
this.eventBus.register(new IntroAnimation());
|
||||
registerPatches();
|
||||
if (PatchAgent.getInstrumentation() != null) {
|
||||
PatchAgent.installPatchesAndRetransform();
|
||||
|
||||
Reference in new issue
Block a user