Skip to content

Commit f055578

Browse files
committed
1.9.3 | Release
Small Release
1 parent 88bfd5d commit f055578

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1320
-894
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod_id=templeclient
22
mod_name=TempleClient
33
mod_group=xyz.templecheats.templeclient
4-
mod_version=1.9.2
4+
mod_version=1.9.3
55
mod_author=["PhilipPanda"]
66
mod_description=a 1.12.2 Minecraft utility mod
77
minecraft_version=1.12.2

gradlew.bat

Lines changed: 32 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/xyz/templecheats/templeclient/TempleClient.java

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/************************************************************************************************
2-
* Temple Client *
2+
* Temple Client *
33
* (c) 2023-2024 Temple Client Development Team. All rights reserved. *
44
************************************************************************************************/
55

@@ -21,7 +21,6 @@
2121
import xyz.templecheats.templeclient.event.ForgeEventManager;
2222
import xyz.templecheats.templeclient.features.gui.font.FontUtils;
2323
import xyz.templecheats.templeclient.features.gui.menu.GuiEventsListener;
24-
import xyz.templecheats.templeclient.features.gui.menu.alt.AltManager;
2524
import xyz.templecheats.templeclient.manager.*;
2625
import xyz.templecheats.templeclient.util.friend.FriendManager;
2726
import xyz.templecheats.templeclient.util.keys.KeyUtil;
@@ -34,19 +33,18 @@
3433
public class TempleClient {
3534
public static final String MODID = "templeclient";
3635
public static final String NAME = "Temple Client";
37-
public static final String VERSION = "1.9.2";
36+
public static final String VERSION = "1.9.3";
3837
public static final MethodHandles.Lookup LOOKUP = MethodHandles.lookup();
3938
public static String name = NAME + " " + VERSION;
4039
public static AnnotatedEventManager eventBus;
40+
public static AltManager altManager;
4141
public static SettingsManager settingsManager;
4242
public static ModuleManager moduleManager;
4343
public static ForgeEventManager clientForgeEventManager;
4444
public static CommandManager commandManager;
4545
public static ConfigManager configManager;
4646
public static CapeManager capeManager;
4747
public static FriendManager friendManager;
48-
public static AltManager altManager;
49-
public static SongManager SONG_MANAGER;
5048
public static HoleManager holeManager = new HoleManager();
5149
public static InventoryManager inventoryManager = new InventoryManager();
5250
public static RotationManager rotationManager = new RotationManager();
@@ -67,22 +65,23 @@ public void init(FMLInitializationEvent event) {
6765
eventBus = new AnnotatedEventManager();
6866
clientForgeEventManager = new ForgeEventManager();
6967
MinecraftForge.EVENT_BUS.register(clientForgeEventManager);
68+
configManager = new ConfigManager();
69+
logger.info("Initialized Config!");
70+
71+
altManager = new AltManager();
7072

7173
settingsManager = new SettingsManager();
7274

73-
TempleClient.moduleManager = new ModuleManager();
75+
moduleManager = new ModuleManager();
7476
logger.info("Module Manager Loaded.");
7577

76-
TempleClient.commandManager = new CommandManager();
78+
commandManager = new CommandManager();
7779
logger.info("Commands Loaded.");
7880

7981
capeManager = new CapeManager();
8082

8183
friendManager = new FriendManager();
8284

83-
altManager = new AltManager();
84-
85-
SONG_MANAGER = new SongManager();
8685
threadManager = new ThreadManager();
8786

8887
MinecraftForge.EVENT_BUS.register(clientForgeEventManager);
@@ -100,37 +99,31 @@ public void init(FMLInitializationEvent event) {
10099

101100
configManager.loadAll();
102101

103-
Runtime.getRuntime().addShutdownHook(new Thread(TempleClient.configManager::saveAll));
102+
Runtime.getRuntime().addShutdownHook(new Thread(configManager::saveAll));
104103
}
105104

106105
@SubscribeEvent
107106
public void onChat(ClientChatEvent event) {
108-
109107
if (event.getMessage().startsWith("."))
110-
if (TempleClient.commandManager.executeCommand(event.getMessage()))
108+
if (commandManager.executeCommand(event.getMessage()))
111109
event.setCanceled(true);
112110
}
113111

114112
public static void setSession(Session s) {
115-
Class < ? extends Minecraft > mc = Minecraft.getMinecraft().getClass();
116-
113+
Class<? extends Minecraft> mc = Minecraft.getMinecraft().getClass();
117114
try {
118115
Field session = null;
119-
120-
for (Field f: mc.getDeclaredFields()) {
116+
for (Field f : mc.getDeclaredFields()) {
121117
if (f.getType().isInstance(s)) {
122118
session = f;
123119
}
124120
}
125-
126121
if (session == null) {
127122
throw new IllegalStateException("Session Null");
128123
}
129-
130124
session.setAccessible(true);
131125
session.set(Minecraft.getMinecraft(), s);
132126
session.setAccessible(false);
133-
134127
name = "TempleClient 1.12.2 | User: " + Minecraft.getMinecraft().getSession().getUsername();
135128
Display.setTitle(name);
136129
} catch (Exception e) {
@@ -139,6 +132,6 @@ public static void setSession(Session s) {
139132
}
140133

141134
public static ModuleManager getModuleManager() {
142-
return TempleClient.moduleManager;
135+
return moduleManager;
143136
}
144-
}
137+
}

0 commit comments

Comments
 (0)