1010import club .sk1er .patcher .asm .render .screen .GuiChatTransformer ;
1111import club .sk1er .patcher .commands .PatcherCommand ;
1212import club .sk1er .patcher .config .PatcherConfig ;
13- import club .sk1er .patcher .config .PatcherSoundConfig ;
1413import club .sk1er .patcher .ducks .FontRendererExt ;
1514import club .sk1er .patcher .hooks .EntityRendererHook ;
16- import club .sk1er .patcher .hooks .MinecraftHook ;
1715import club .sk1er .patcher .mixins .features .network .packet .C01PacketChatMessageMixin_ExtendedChatLength ;
1816import club .sk1er .patcher .render .ScreenshotPreview ;
1917import club .sk1er .patcher .screen .PatcherMenuEditor ;
2018import club .sk1er .patcher .screen .render .caching .HUDCaching ;
2119import club .sk1er .patcher .screen .render .overlay .ArmorStatusRenderer ;
2220import club .sk1er .patcher .screen .render .overlay .GlanceRenderer ;
23- import club .sk1er .patcher .screen .render .overlay .ImagePreview ;
2421import club .sk1er .patcher .screen .render .overlay .metrics .MetricsRenderer ;
2522import club .sk1er .patcher .screen .render .title .TitleFix ;
26- import club .sk1er .patcher .util .chat .ChatHandler ;
2723import club .sk1er .patcher .util .enhancement .EnhancementManager ;
28- import club .sk1er .patcher .util .enhancement .ReloadListener ;
2924import club .sk1er .patcher .util .forge .EntrypointCaching ;
30- import club .sk1er .patcher .util .fov .FovHandler ;
3125import club .sk1er .patcher .util .keybind .FunctionKeyChanger ;
3226import club .sk1er .patcher .util .keybind .KeybindDropModifier ;
3327import club .sk1er .patcher .util .keybind .MousePerspectiveKeybindHandler ;
3630import club .sk1er .patcher .util .status .ProtocolVersionDetector ;
3731import club .sk1er .patcher .util .world .SavesWatcher ;
3832import club .sk1er .patcher .util .world .render .entity .EntityRendering ;
39- import club .sk1er .patcher .util .world .sound .SoundHandler ;
4033import club .sk1er .patcher .util .world .sound .audioswitcher .AudioSwitcher ;
4134import com .google .gson .JsonObject ;
4235import net .minecraft .client .Minecraft ;
4336import net .minecraft .client .gui .FontRenderer ;
44- import net .minecraft .client .resources .IReloadableResourceManager ;
4537import net .minecraft .client .settings .KeyBinding ;
4638import net .minecraftforge .common .ForgeVersion ;
47- import net .minecraftforge .common .MinecraftForge ;
4839import net .minecraftforge .fml .client .registry .ClientRegistry ;
4940import net .minecraftforge .fml .common .Loader ;
5041import net .minecraftforge .fml .common .Mod ;
@@ -94,7 +85,6 @@ public class Patcher
9485 private KeyBinding dropModifier , hideScreen , customDebug , clearShaders ;
9586
9687 private PatcherConfig patcherConfig ;
97- private PatcherSoundConfig patcherSoundConfig ;
9888
9989 private boolean loadedGalacticFontRenderer ;
10090
@@ -112,13 +102,6 @@ public void onInit(FMLInitializationEvent event) {
112102 );
113103
114104 patcherConfig = PatcherConfig .INSTANCE ;
115- //todo
116- //patcherSoundConfig = new PatcherSoundConfig(null, null);
117-
118- SoundHandler soundHandler = new SoundHandler ();
119- IReloadableResourceManager resourceManager = (IReloadableResourceManager ) Minecraft .getMinecraft ().getResourceManager ();
120- resourceManager .registerReloadListener (soundHandler );
121- resourceManager .registerReloadListener (new ReloadListener ());
122105
123106 registerCommands (
124107 new PatcherCommand (),
@@ -128,13 +111,12 @@ public void onInit(FMLInitializationEvent event) {
128111 );
129112
130113 registerEvents (
131- this , soundHandler , dropModifier , audioSwitcher ,
132- new EntityRendering (), new FovHandler (),
133- new ChatHandler (), new GlanceRenderer (),
134- new ArmorStatusRenderer (), new PatcherMenuEditor (), new ImagePreview (),
114+ this , dropModifier , audioSwitcher ,
115+ new EntityRendering (), new GlanceRenderer (),
116+ new ArmorStatusRenderer (), new PatcherMenuEditor (),
135117 new TitleFix (), new LinuxKeybindFix (),
136118 new MetricsRenderer (), new HUDCaching (), new EntityRendererHook (),
137- MinecraftHook . INSTANCE , ScreenshotPreview .INSTANCE ,
119+ ScreenshotPreview .INSTANCE ,
138120 new MousePerspectiveKeybindHandler ()
139121 );
140122
@@ -326,13 +308,8 @@ private void loadBlacklistedServers() {
326308 }
327309
328310 private void fixSettings () {
329- if (PatcherConfig .fireOverlayHeight < -0.5F || PatcherConfig .fireOverlayHeight > 1.5F ) {
330- PatcherConfig .fireOverlayHeight = 0.0F ;
331- }
332311 if (PatcherConfig .customZoomSensitivity > 1.0F ) PatcherConfig .customZoomSensitivity = 1.0F ;
333- if (PatcherConfig .imagePreviewWidth > 1.0F ) PatcherConfig .imagePreviewWidth = 0.5F ;
334312 if (PatcherConfig .previewScale > 1.0F ) PatcherConfig .previewScale = 1.0F ;
335- if (PatcherConfig .unfocusedFPSAmount < 15 ) PatcherConfig .unfocusedFPSAmount = 15 ;
336313
337314 this .forceSaveConfig ();
338315 }
@@ -348,15 +325,6 @@ private void detectIncompatibilities(List<ModContainer> activeModList) {
348325 PatcherConfig .entityCulling = false ;
349326 }
350327
351- if ((modId .equals ("labymod" ) || modId .equals ("enhancements" )) || modId .equals ("hychat" )) {
352- if (PatcherConfig .compactChat ) {
353- Notifications .enqueue (
354- Notifications .Type .Error ,
355- "Patcher" , baseMessage + "Compact Chat is now disabled." );
356- PatcherConfig .compactChat = false ;
357- }
358- }
359-
360328 if (PatcherConfig .optimizedFontRenderer && modId .equals ("smoothfont" )) {
361329 Notifications .enqueue (
362330 Notifications .Type .Error ,
@@ -418,10 +386,6 @@ public PatcherConfig getPatcherConfig() {
418386 return patcherConfig ;
419387 }
420388
421- public PatcherSoundConfig getPatcherSoundConfig () {
422- return patcherSoundConfig ;
423- }
424-
425389 public static Logger getLogger () {
426390 return logger ;
427391 }
0 commit comments