Instant setting load
This commit is contained in:
parent
b612d1b2ff
commit
11fc6316ad
124290
javascript/classes.js
124290
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -39,7 +39,7 @@ public class CPS extends RenderModule {
|
||||||
final long time = System.currentTimeMillis();
|
final long time = System.currentTimeMillis();
|
||||||
FuncUtils.removeIf(clicks, aLong -> aLong + 1000 < time);
|
FuncUtils.removeIf(clicks, aLong -> aLong + 1000 < time);
|
||||||
|
|
||||||
mc.fontRendererObj.drawString("["+clicks.size()+"CPS]", this.x+2, this.y+2, -1, tshadow.getValue());
|
mc.fontRendererObj.drawString("["+clicks.size()+" CPS]", this.x+2, this.y+2, -1, tshadow.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1683,6 +1683,7 @@ public class Minecraft implements IThreadListener {
|
||||||
this.thePlayer.movementInput = new MovementInputFromOptions(this.gameSettings);
|
this.thePlayer.movementInput = new MovementInputFromOptions(this.gameSettings);
|
||||||
this.playerController.setPlayerCapabilities(this.thePlayer);
|
this.playerController.setPlayerCapabilities(this.thePlayer);
|
||||||
this.renderViewEntity = this.thePlayer;
|
this.renderViewEntity = this.thePlayer;
|
||||||
|
this.gameSettings.loadOptions();
|
||||||
} else {
|
} else {
|
||||||
this.thePlayer = null;
|
this.thePlayer = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,17 +169,18 @@ public class GuiIngame extends Gui {
|
||||||
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
this.mc.getTextureManager().bindTexture(icons);
|
this.mc.getTextureManager().bindTexture(icons);
|
||||||
GlStateManager.enableBlend();
|
GlStateManager.enableBlend();
|
||||||
|
|
||||||
if (this.showCrosshair()) {
|
if (this.showCrosshair()) {
|
||||||
Minecraft mc = Minecraft.getMinecraft();
|
//GlStateManager.tryBlendFuncSeparate(GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_COLOR, 1, 0);
|
||||||
Entity target = mc.pointedEntity;
|
|
||||||
if(!ModManager.crosshair.isEnabled())
|
if(Minecraft.getMinecraft().pointedEntity != null && ModManager.crosshair.isEnabled())
|
||||||
GlStateManager.tryBlendFuncSeparate(GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_COLOR, 1, 0);
|
|
||||||
|
|
||||||
if(target != null && ModManager.crosshair.isEnabled())
|
|
||||||
GlStateManager.color(RenderUtils.getColorWithoutRGB(Crosshair.color).getRed(), RenderUtils.getColorWithoutRGB(Crosshair.color).getGreen(), RenderUtils.getColorWithoutRGB(Crosshair.color).getBlue());
|
GlStateManager.color(RenderUtils.getColorWithoutRGB(Crosshair.color).getRed(), RenderUtils.getColorWithoutRGB(Crosshair.color).getGreen(), RenderUtils.getColorWithoutRGB(Crosshair.color).getBlue());
|
||||||
|
|
||||||
this.drawTexturedModalRect(i / 2 - 7, j / 2 - 7, 0, 0, 16, 16);
|
this.drawTexturedModalRect(i / 2 - 7, j / 2 - 7, 0, 0, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
|
||||||
|
|
||||||
GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, 1, 0);
|
GlStateManager.tryBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, 1, 0);
|
||||||
this.mc.mcProfiler.startSection("bossHealth");
|
this.mc.mcProfiler.startSection("bossHealth");
|
||||||
this.renderBossHealth();
|
this.renderBossHealth();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user