smh it kept crashing

This commit is contained in:
ThisIsALegitUsername 2023-04-03 11:04:51 -06:00
parent 4d1323b2a4
commit 383169588d
2 changed files with 7 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -21,6 +21,7 @@ import net.minecraft.client.gui.FontRenderer;
import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.Gui;
import net.minecraft.client.gui.GuiScreen; import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution; import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.util.ResourceLocation;
public class ClickGuiRewrite extends GuiScreen{ public class ClickGuiRewrite extends GuiScreen{
@ -68,6 +69,12 @@ public class ClickGuiRewrite extends GuiScreen{
fr.drawString("Resent", x+80, y+36, -1, false); fr.drawString("Resent", x+80, y+36, -1, false);
GlStateManager.popMatrix(); GlStateManager.popMatrix();
//Navigation icons
GlStateManager.color(1, 1, 1);
ResourceLocation icon = new ResourceLocation("/resent/house.png");
mc.getTextureManager().bindTexture(icon);
Gui.drawModalRectWithCustomSizedTexture(x+20, (int)y+120, 0, 0, 20, 20, 20, 20);
//Draw module button //Draw module button
for(Mod m : Resent.INSTANCE.modManager.modules){ for(Mod m : Resent.INSTANCE.modManager.modules){