From fd9d470bdd1581b5b825c1958a42eed3b3c77862 Mon Sep 17 00:00:00 2001 From: noil755 Date: Mon, 25 Nov 2019 21:29:13 -0500 Subject: [PATCH] Remove old code causing client not to compile --- .../seppuku/impl/management/HudManager.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/main/java/me/rigamortis/seppuku/impl/management/HudManager.java b/src/main/java/me/rigamortis/seppuku/impl/management/HudManager.java index 8b6500f..abcb99e 100644 --- a/src/main/java/me/rigamortis/seppuku/impl/management/HudManager.java +++ b/src/main/java/me/rigamortis/seppuku/impl/management/HudManager.java @@ -1,22 +1,16 @@ package me.rigamortis.seppuku.impl.management; import me.rigamortis.seppuku.Seppuku; -import me.rigamortis.seppuku.api.event.EventStageable; -import me.rigamortis.seppuku.api.event.network.EventReceivePacket; import me.rigamortis.seppuku.api.event.render.EventRender2D; import me.rigamortis.seppuku.api.gui.hud.component.HudComponent; import me.rigamortis.seppuku.api.module.Module; -import me.rigamortis.seppuku.api.notification.Notification; import me.rigamortis.seppuku.api.util.ReflectionUtil; -import me.rigamortis.seppuku.impl.config.HudConfig; import me.rigamortis.seppuku.impl.gui.hud.anchor.AnchorPoint; import me.rigamortis.seppuku.impl.gui.hud.component.*; import me.rigamortis.seppuku.impl.gui.hud.component.module.ModuleListComponent; -import me.rigamortis.seppuku.impl.module.render.HudModule; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiChat; import net.minecraft.client.gui.ScaledResolution; -import net.minecraft.network.play.server.SPacketJoinGame; import team.stiff.pomelo.impl.annotated.handler.annotation.Listener; import java.io.File; @@ -126,32 +120,6 @@ public final class HudManager { } } - @Listener - public void onReceivePacket(EventReceivePacket event) { - if (event.getStage().equals(EventStageable.EventStage.POST)) { - if (event.getPacket() instanceof SPacketJoinGame) { - if (HudConfig.FIRST_HUD_RUN) { - final Module hudModule = Seppuku.INSTANCE.getModuleManager().find(HudModule.class); - final HudComponent tutorialComponent = this.findComponent(TutorialComponent.class); - - if (hudModule != null) { - if (!hudModule.isEnabled()) { - hudModule.toggle(); - } - } - - if (tutorialComponent != null) { - tutorialComponent.setVisible(true); - } - - Seppuku.INSTANCE.getNotificationManager().addNotification("New Hud Editor! .bind HudEditor ", "New Hud Editor! .bind HudEditor ", Notification.Type.INFO, 20000); - HudConfig.FIRST_HUD_RUN = false; - Seppuku.INSTANCE.getConfigManager().saveAll(); - } - } - } - } - public void loadExternalHudComponents() { try { final File dir = new File("Seppuku 1.12.2/Hud");