Skip to content

Commit

Permalink
chinahat and themes improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyhilton committed Jul 12, 2024
1 parent 66ff649 commit 58a1081
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Binary file modified eclipse/Client/bin/juan/modules/render/ChinaHat.class
Binary file not shown.
Binary file modified eclipse/Client/bin/juan/modules/render/Theme.class
Binary file not shown.
9 changes: 5 additions & 4 deletions src/minecraft/juan/modules/render/ChinaHat.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,17 @@ public class ChinaHat extends Module {
public NumberSetting height = new NumberSetting("height", 0.3, 0.1, 1.0, 0.1);
public NumberSetting opacity = new NumberSetting("opacity", 0.7, 0.1, 1.0, 0.1);
public NumberSetting segments = new NumberSetting("segments", 20, 3, 80, 4);
public BooleanSetting renderInFirstPerson = new BooleanSetting("firstperson", false);

public ChinaHat() {
super("ChinaHat", Keyboard.KEY_NONE, Category.RENDER, true);
this.addSettings(radius, height, segments, opacity);
this.addSettings(radius, height, segments, opacity, renderInFirstPerson);
}

public void onEvent(Event e) {
if (e instanceof EventRender3D) {
renderChinaHat(((EventRender3D) e).getPartialTicks());
}
if (e instanceof EventRender3D)
if(renderInFirstPerson.isEnabled() || !(mc.gameSettings.thirdPersonView == 0))
renderChinaHat(((EventRender3D) e).getPartialTicks());
}

private void renderChinaHat(float partialTicks) {
Expand Down
2 changes: 1 addition & 1 deletion src/minecraft/juan/modules/render/Theme.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class Theme extends Module {

public ModeSetting theme = new ModeSetting("theme", "pink-purple-aqua", "rainbow", "unsaturated rainbow", "white", "green-blue gradient", "pink-purple-aqua");
public ModeSetting theme = new ModeSetting("theme", "pink-purple-aqua", "rainbow", "white", "green-blue gradient", "pink-purple-aqua");
public BooleanSetting includeBadge = new BooleanSetting("include badge", false);
public NumberSetting speed = new NumberSetting("speed", 1, 0, 4, 0.2);
public NumberSetting smoothness = new NumberSetting("smoothness", 1, 0, 2, 0.1);
Expand Down

0 comments on commit 58a1081

Please sign in to comment.