FIX ALL CRASHES 🔥 CLIENT IS READY.

This commit is contained in:
ThisIsALegitUsername 2022-12-29 15:52:11 +00:00
parent 6aae1eeebb
commit 5dfe0979bf
17 changed files with 1604277 additions and 81606 deletions

View File

@ -22,7 +22,7 @@
</natures>
<filteredResources>
<filter>
<id>1</id>
<id>0</id>
<name></name>
<type>30</type>
<matcher>

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -31,7 +31,7 @@ public class Resent {
public ModManager modManager;
public void init() {
//modManager = new ModManager();
modManager = new ModManager();
}
public void saveSettings(PrintWriter printwriter){
@ -61,7 +61,6 @@ public class Resent {
}
public void loadSettings(String[] astring){
modManager = new ModManager();
for(Mod m : modManager.modules){
List<RenderModule> rmodules = new ArrayList<>();

View File

@ -39,7 +39,6 @@ import dev.resent.module.impl.misc.Tooltips;
import dev.resent.module.impl.movement.AutoJump;
import dev.resent.module.impl.movement.AutoWalk;
import dev.resent.module.impl.movement.Sprint;
import dev.resent.ui.mods.HUDConfigScreen;
import net.minecraft.client.Minecraft;
public class ModManager {
@ -73,7 +72,7 @@ public class ModManager {
public static Scoreboard scoreboard;
public static AutoWalk autoWalk;
public static AutoJump autoJump;
public static SelfNametag selfNametag;
public static SelfNametag selfNametag = new SelfNametag();
public static Scoreboard scoreboard2;
public static ClearChat clearChat = new ClearChat();
public static Tooltips tooltips;
@ -156,14 +155,4 @@ public class ModManager {
return modules1;
}
public void renderMods() {
for (int i = 0; i < modules.size(); i++) {
if (modules.get(i).isEnabled() && (modules.get(i) instanceof RenderModule)) {
if (!(mc.currentScreen instanceof HUDConfigScreen)) {
((RenderModule) modules.get(i)).draw();
}
}
}
}
}

View File

@ -420,6 +420,7 @@ public class Minecraft implements IThreadListener {
GlStateManager.loadIdentity();
GlStateManager.matrixMode(GL_MODELVIEW);
this.checkGLError("Startup");
Resent.INSTANCE.init();
this.textureMapBlocks = new TextureMap("textures");
this.textureMapBlocks.setMipmapLevels(this.gameSettings.mipmapLevels);
this.renderEngine.loadTickableTexture(TextureMap.locationBlocksTexture, this.textureMapBlocks);
@ -445,8 +446,6 @@ public class Minecraft implements IThreadListener {
this.checkGLError("Post startup");
this.ingameGUI = new GuiIngame(this);
Resent.INSTANCE.init();
ServerList.initServerList(this);
EaglerProfile.read();

View File

@ -14,6 +14,9 @@ import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import dev.resent.Resent;
import dev.resent.module.base.Mod;
import dev.resent.module.base.RenderModule;
import dev.resent.ui.mods.HUDConfigScreen;
import dev.resent.util.misc.W;
import net.lax1dude.eaglercraft.v1_8.EaglercraftRandom;
import net.lax1dude.eaglercraft.v1_8.minecraft.EaglerTextureAtlasSprite;
@ -319,7 +322,15 @@ public class GuiIngame extends Gui {
this.overlayPlayerList.renderPlayerlist(i, scoreboard, scoreobjective1);
}
Resent.INSTANCE.modManager.renderMods();
for (Mod m : Resent.INSTANCE.modManager.modules) {
if (m.isEnabled() && (m instanceof RenderModule)) {
if (!(mc.currentScreen instanceof HUDConfigScreen)) {
((RenderModule) m).draw();
}
}
}
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
GlStateManager.disableLighting();
GlStateManager.enableAlpha();

View File

@ -69,7 +69,7 @@ public abstract class Render<T extends Entity> {
}
protected boolean canRenderName(T entity) {
return entity.getAlwaysRenderNameTagForRender() && entity.hasCustomName() || W.selfNametag().isEnabled();
return entity.getAlwaysRenderNameTagForRender() && entity.hasCustomName();
}
protected void renderOffsetLivingLabel(T entityIn, double x, double y, double z, String str, float parFloat1,