File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/com/falsepattern/lib Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com .falsepattern .lib .config ;
2
2
3
3
import com .falsepattern .lib .StableAPI ;
4
+ import com .falsepattern .lib .internal .CoreLoadingPlugin ;
4
5
import cpw .mods .fml .client .event .ConfigChangedEvent ;
5
6
import cpw .mods .fml .common .eventhandler .SubscribeEvent ;
6
7
import lombok .AccessLevel ;
@@ -45,7 +46,7 @@ public static void registerConfig(Class<?> config) throws IllegalAccessException
45
46
*/
46
47
public static void init () {
47
48
if (initialized ) return ;
48
- configDir = Launch . minecraftHome .toPath ().resolve ("config" );
49
+ configDir = CoreLoadingPlugin . mcDir .toPath ().resolve ("config" );
49
50
MinecraftForge .EVENT_BUS .register (instance );
50
51
initialized = true ;
51
52
}
Original file line number Diff line number Diff line change 1
1
package com .falsepattern .lib .mixin ;
2
2
3
+ import com .falsepattern .lib .internal .CoreLoadingPlugin ;
3
4
import lombok .val ;
4
5
import net .minecraft .launchwrapper .Launch ;
5
6
import org .apache .logging .log4j .LogManager ;
21
22
import static java .nio .file .Files .walk ;
22
23
23
24
public interface IMixinPlugin extends IMixinConfigPlugin {
24
- Path MODS_DIRECTORY_PATH = new File ( Launch . minecraftHome , "mods/" ). toPath ( );
25
+ Path MODS_DIRECTORY_PATH = CoreLoadingPlugin . mcDir . toPath (). resolve ( "mods" );
25
26
26
27
Logger getLogger ();
27
28
ITargetedMod [] getTargetedModEnumValues ();
You can’t perform that action at this time.
0 commit comments