Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 0c81c5a

Browse files
committed
cleanup
- added missing translation keys
1 parent 1aa6050 commit 0c81c5a

File tree

10 files changed

+19
-51
lines changed

10 files changed

+19
-51
lines changed

src/main/java/io/github/axolotlclient/AxolotlClient.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import net.minecraft.entity.Entity;
3131
import net.minecraft.entity.player.PlayerEntity;
3232
import net.minecraft.resource.Resource;
33-
import net.minecraft.resource.ResourcePack;
3433
import net.minecraft.util.Identifier;
3534

3635
import java.nio.file.Path;
@@ -45,11 +44,8 @@ public class AxolotlClient implements ClientModInitializer {
4544
public static ConfigManager configManager;
4645
public static HashMap<UUID, Boolean> playerCache = new HashMap<>();
4746

48-
public static List<ResourcePack> packs = new ArrayList<>();
4947
public static HashMap<Identifier, Resource> runtimeResources = new HashMap<>();
5048

51-
public static boolean initalized = false;
52-
5349
public static final Identifier badgeIcon = new Identifier("axolotlclient", "textures/badge.png");
5450

5551
public static final OptionCategory config = new OptionCategory("storedOptions");
@@ -62,7 +58,6 @@ public class AxolotlClient implements ClientModInitializer {
6258
public void onInitializeClient() {
6359
CONFIG = new AxolotlClientConfig();
6460
config.add(someNiceBackground);
65-
config.add(CONFIG.rotateWorld);
6661

6762
getModules();
6863
addExternalModules();

src/main/java/io/github/axolotlclient/config/AxolotlClientConfig.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public class AxolotlClientConfig extends ConfigHolder {
2424
public final BooleanOption timeChangerEnabled = new BooleanOption("enabled", false);
2525
public final IntegerOption customTime = new IntegerOption("time", 0, 0, 24000);
2626
public final BooleanOption customSky = new BooleanOption("customSky", true);
27-
public final BooleanOption showSunMoon = new BooleanOption("showSunMoon", true);
2827
public final IntegerOption cloudHeight = new IntegerOption("cloudHeight", 128, 100, 512);
2928
public final BooleanOption dynamicFOV = new BooleanOption("dynamicFov", true);
3029
public final BooleanOption fullBright = new BooleanOption("fullBright", false);
@@ -34,8 +33,6 @@ public class AxolotlClientConfig extends ConfigHolder {
3433
public final BooleanOption nightMode = new BooleanOption("nightMode", false);
3534
public final BooleanOption rawMouseInput = new BooleanOption("rawMouseInput", false);
3635

37-
public final BooleanOption rotateWorld = new BooleanOption("rotateWorld", false);
38-
3936
public final BooleanOption enableCustomOutlines = new BooleanOption("enabled", false);
4037
public final ColorOption outlineColor = new ColorOption("color", Color.parse("#DD000000"));
4138
public final IntegerOption outlineWidth = new IntegerOption("outlineWidth", 1, 1, 10);
@@ -107,7 +104,6 @@ public void init(){
107104
general.addSubCategory(searchFilters);
108105

109106
rendering.add(customSky,
110-
showSunMoon,
111107
cloudHeight,
112108
AxolotlClientConfigConfig.chromaSpeed,
113109
dynamicFOV,

src/main/java/io/github/axolotlclient/mixin/MinecraftClientMixin.java

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import io.github.axolotlclient.modules.hud.HudManager;
66
import io.github.axolotlclient.modules.hud.gui.hud.CPSHud;
77
import io.github.axolotlclient.modules.rpc.DiscordRPC;
8-
import io.github.axolotlclient.modules.sky.SkyResourceManager;
98
import io.github.axolotlclient.modules.zoom.Zoom;
109
import io.github.axolotlclient.util.Util;
1110
import net.minecraft.client.MinecraftClient;
@@ -19,7 +18,6 @@
1918
import net.minecraft.entity.player.ClientPlayerEntity;
2019
import net.minecraft.world.level.LevelInfo;
2120
import org.apache.logging.log4j.Logger;
22-
import org.lwjgl.LWJGLException;
2321
import org.lwjgl.input.Keyboard;
2422
import org.lwjgl.input.Mouse;
2523
import org.lwjgl.opengl.Display;
@@ -40,7 +38,9 @@ public abstract class MinecraftClientMixin {
4038

4139
@Shadow public ClientPlayerEntity player;
4240

43-
@Shadow protected abstract void loadLogo(TextureManager textureManager) throws LWJGLException;
41+
protected MinecraftClientMixin(TextureManager textureManager) {
42+
this.textureManager = textureManager;
43+
}
4444

4545
@Shadow private TextureManager textureManager;
4646

@@ -64,17 +64,6 @@ public void setWindowTitle(CallbackInfo ci){
6464
Display.setTitle("AxolotlClient "+ this.gameVersion);
6565
}
6666

67-
@Redirect(method = "initializeGame", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/MinecraftClient;loadLogo(Lnet/minecraft/client/texture/TextureManager;)V"))
68-
public void noLogo(MinecraftClient instance, TextureManager textureManager){}
69-
70-
@Inject(method = "initializeGame", at = @At(value = "INVOKE", target = "Lnet/minecraft/advancement/Achievement;setStatFormatter(Lnet/minecraft/stat/StatFormatter;)Lnet/minecraft/advancement/Achievement;"))
71-
public void loadSkiesOnStartup(CallbackInfo ci){
72-
//SkyResourceManager.onStartup();
73-
try {
74-
this.loadLogo(this.textureManager);
75-
} catch (Exception ignored){}
76-
}
77-
7867
@Redirect(method = "handleKeyInput", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/options/KeyBinding;getCode()I", ordinal = 5))
7968
// Fix taking a screenshot when pressing '<' (Because it has the same keyCode as F2)
8069
public int iTryToFixTheScreenshotKey(KeyBinding instance) {

src/main/java/io/github/axolotlclient/mixin/ReloadableResourceManagerImplMixin.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import io.github.axolotlclient.modules.hud.HudManager;
55
import io.github.axolotlclient.modules.hud.gui.hud.PackDisplayHud;
66
import io.github.axolotlclient.modules.hypixel.HypixelAbstractionLayer;
7-
import io.github.axolotlclient.modules.sky.SkyboxManager;
87
import net.minecraft.resource.ReloadableResourceManagerImpl;
98
import net.minecraft.resource.Resource;
109
import net.minecraft.resource.ResourcePack;
@@ -20,27 +19,13 @@
2019
@Mixin(ReloadableResourceManagerImpl.class)
2120
public abstract class ReloadableResourceManagerImplMixin {
2221

23-
/*@Inject(method = "reload", at = @At(value = "INVOKE", target = "Lorg/apache/logging/log4j/Logger;info(Ljava/lang/String;)V", shift = At.Shift.AFTER), remap = false)
24-
public void stopRenderingSkies(List<ResourcePack> resourcePacks, CallbackInfo ci){
25-
SkyboxManager.getInstance().clearSkyboxes();
26-
}*/
27-
28-
/*@Inject(method = "clear", at = @At("TAIL"))
29-
public void startReload(CallbackInfo ci){
30-
SkyboxManager.getInstance().clearSkyboxes();
31-
}*/
32-
3322
@Inject(method = "reload", at=@At("TAIL"))
3423
public void onReload(List<ResourcePack> resourcePacks, CallbackInfo ci){
3524
HypixelAbstractionLayer.clearPlayerData();
36-
/*if(AxolotlClient.initalized)SkyResourceManager.reload(resourcePacks);
37-
else{SkyResourceManager.packs=resourcePacks;}*/
38-
AxolotlClient.packs=resourcePacks;
3925

4026
PackDisplayHud hud = (PackDisplayHud) HudManager.getInstance().get(PackDisplayHud.ID);
4127
if(hud != null && hud.isEnabled()){
42-
hud.widgets.clear();
43-
hud.init();
28+
hud.setPacks(resourcePacks);
4429
}
4530
}
4631

src/main/java/io/github/axolotlclient/mixin/WorldRendererMixin.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
import io.github.axolotlclient.AxolotlClient;
55
import io.github.axolotlclient.modules.sky.SkyboxManager;
66
import net.minecraft.client.MinecraftClient;
7-
import net.minecraft.client.render.*;
7+
import net.minecraft.client.render.WorldRenderer;
88
import net.minecraft.client.world.ClientWorld;
99
import net.minecraft.entity.player.PlayerEntity;
10-
import net.minecraft.util.Identifier;
1110
import net.minecraft.util.hit.BlockHitResult;
12-
import net.minecraft.util.math.Vec3d;
1311
import net.minecraft.world.dimension.Dimension;
14-
import org.lwjgl.opengl.GL11;
1512
import org.spongepowered.asm.mixin.Final;
1613
import org.spongepowered.asm.mixin.Mixin;
1714
import org.spongepowered.asm.mixin.Shadow;

src/main/java/io/github/axolotlclient/modules/ModuleLoader.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.github.axolotlclient.modules;
22

3-
import io.github.axolotlclient.AxolotlClient;
43
import io.github.axolotlclient.config.screen.CreditsScreen;
54
import io.github.axolotlclient.util.Logger;
65
import net.fabricmc.loader.api.FabricLoader;

src/main/java/io/github/axolotlclient/modules/hud/gui/hud/PackDisplayHud.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ public class PackDisplayHud extends AbstractHudEntry {
2222

2323
public final List<packWidget> widgets = new ArrayList<>();
2424

25+
private final List<ResourcePack> packs = new ArrayList<>();
26+
2527
public PackDisplayHud() {
2628
super(200, 50);
2729
}
2830

2931
@Override
3032
public void init() {
31-
AxolotlClient.packs.forEach(pack -> {
33+
packs.forEach(pack -> {
3234
try {
3335
if(!pack.getName().equalsIgnoreCase("Default") && pack.getIcon()!=null)
3436
widgets.add(new packWidget(pack));
@@ -47,6 +49,12 @@ public void init() {
4749
height=(widgets.size()-1)*18+18;
4850
}
4951

52+
public void setPacks(List<ResourcePack> packs){
53+
widgets.clear();
54+
this.packs.addAll(packs);
55+
init();
56+
}
57+
5058
@Override
5159
public void render() {
5260
scale();

src/main/java/io/github/axolotlclient/modules/sky/SkyResourceManager.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import com.google.gson.Gson;
44
import com.google.gson.GsonBuilder;
55
import com.google.gson.JsonObject;
6-
import io.github.axolotlclient.AxolotlClient;
76
import io.github.axolotlclient.modules.AbstractModule;
87
import io.github.axolotlclient.util.Logger;
98
import io.github.moehreag.searchInResources.SearchableResourceManager;
@@ -100,8 +99,6 @@ public void reload(ResourceManager resourceManager) {
10099
Logger.debug("Loaded sky: " + entry.getKey());
101100
loadMCPSky("mcpatcher", entry.getKey(), entry.getValue());
102101
}
103-
104-
AxolotlClient.initalized = true;
105102
}
106103

107104
@Override

src/main/java/io/github/axolotlclient/util/OSUtil.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package io.github.axolotlclient.util;
22

3-
import io.github.axolotlclient.AxolotlClient;
4-
53
import java.io.IOException;
64
import java.net.MalformedURLException;
75
import java.net.URI;

src/main/resources/assets/axolotlclient/lang/en_US.lang

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ copy_image=Copy this Screenshot
3838
deleteAction=[Delete]
3939
delete_image=Delete this Screenshot
4040
screenshot_deleted=Screenshot <name> has been successfully deleted!
41+
debugLogOutput=Debug Log Output
4142

4243
rendering=Rendering Options
4344
customSky=Custom Skies
44-
showSunMoon=Custom Sky Sun & Moon
4545
cloudHeight=Cloud Height
4646
zoomDivisor=FOV Divisor
4747
zoomSpeed=Animation Speed
@@ -249,6 +249,10 @@ showActivity=Show Activity
249249
showActivity.tooltip=Whether to show your current In-Game Activity.
250250
showTime=Show Time
251251
showTime.tooltip=Whether to show a timestamp.
252+
showServerNameMode=Description Mode
253+
showIp=Show Server IP
254+
showName=Show Server Name
255+
off=Disabled
252256

253257
freelook=Freelook
254258
perspective=Perspective

0 commit comments

Comments
 (0)