|
1 | 1 | package com.minecrafttas.tasmod;
|
2 | 2 |
|
3 |
| -import static com.minecrafttas.tasmod.TASmod.LOGGER; |
4 |
| - |
5 |
| -import java.io.File; |
6 |
| -import java.io.IOException; |
7 |
| -import java.util.ArrayList; |
8 |
| -import java.util.List; |
9 |
| - |
10 | 3 | import com.minecrafttas.common.LanguageManager;
|
11 |
| -import org.apache.logging.log4j.Level; |
12 |
| -import org.lwjgl.input.Keyboard; |
13 |
| - |
14 | 4 | import com.minecrafttas.mctcommon.Configuration;
|
15 | 5 | import com.minecrafttas.mctcommon.Configuration.ConfigOptions;
|
16 | 6 | import com.minecrafttas.mctcommon.KeybindManager;
|
|
38 | 28 | import com.minecrafttas.tasmod.util.ShieldDownloader;
|
39 | 29 | import com.minecrafttas.tasmod.virtual.VirtualInput;
|
40 | 30 | import com.minecrafttas.tasmod.virtual.VirtualKeybindings;
|
41 |
| - |
42 | 31 | import net.fabricmc.api.ClientModInitializer;
|
43 | 32 | import net.minecraft.client.Minecraft;
|
44 | 33 | import net.minecraft.client.entity.EntityPlayerSP;
|
|
48 | 37 | import net.minecraft.client.multiplayer.ServerData;
|
49 | 38 | import net.minecraft.client.settings.KeyBinding;
|
50 | 39 | import net.minecraft.server.MinecraftServer;
|
| 40 | +import org.apache.logging.log4j.Level; |
| 41 | +import org.lwjgl.input.Keyboard; |
| 42 | + |
| 43 | +import java.io.File; |
| 44 | +import java.io.IOException; |
| 45 | +import java.util.ArrayList; |
| 46 | +import java.util.List; |
| 47 | + |
| 48 | +import static com.minecrafttas.tasmod.TASmod.LOGGER; |
51 | 49 |
|
52 | 50 | public class TASmodClient implements ClientModInitializer, EventClientInit, EventPlayerJoinedClientSide, EventOpenGui{
|
53 | 51 |
|
@@ -112,7 +110,7 @@ public void onInitializeClient() {
|
112 | 110 | }
|
113 | 111 | config = new Configuration("TASmod configuration", new File(configDir, "tasmod.cfg"));
|
114 | 112 |
|
115 |
| - LanguageManager.registerModForLanguageManager("tasmod"); |
| 113 | + LanguageManager.registerMod("tasmod"); |
116 | 114 |
|
117 | 115 | // Execute /restartandplay. Load the file to start from the config. If it exists load the playback file on start.
|
118 | 116 | String fileOnStart = config.get(ConfigOptions.FileToOpen);
|
|
0 commit comments