Skip to content

Commit 27c465b

Browse files
authored
Merge pull request #4 from asdflj/dep
修复配置文件无法生效
2 parents 80c8ead + ee726e5 commit 27c465b

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

dependencies.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
3535
*/
3636
dependencies {
37-
api('com.github.GTNewHorizons:NotEnoughItems:2.7.64-GTNH:dev')
37+
api('com.github.GTNewHorizons:NotEnoughItems:2.7.81-GTNH:dev')
3838
shadowImplementation(files('libs/PinIn-1.6.0-all.jar'))
3939
shadowImplementation 'org.luaj:luaj-jse:3.0.1'
40-
runtimeOnlyNonPublishable('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-658-GTNH:dev')
41-
api('com.github.GTNewHorizons:AE2FluidCraft-Rework:1.4.100-gtnh:dev') {
40+
runtimeOnlyNonPublishable('com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-684-GTNH:dev')
41+
api('com.github.GTNewHorizons:AE2FluidCraft-Rework:1.4.113-gtnh:dev') {
4242
exclude group: 'com.github.GTNewHorizons', module: 'Applied-Energistics-2-Unofficial'
4343
}
4444
// runtimeOnlyNonPublishable('com.github.GTNewHorizons:GT5-Unofficial:5.09.51.389:dev')

src/main/java/com/asdflj/nech/proxy/ClientProxy.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package com.asdflj.nech.proxy;
22

3+
import static com.asdflj.nech.NechConfig.KeyboardType;
4+
import static com.asdflj.nech.NechConfig.setKeyboard;
5+
36
import java.io.File;
47

58
import net.minecraft.client.Minecraft;
@@ -14,6 +17,7 @@
1417
import com.asdflj.nech.NechConfig;
1518
import com.asdflj.nech.utils.PinInPlugin;
1619

20+
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
1721
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
1822
import cpw.mods.fml.relauncher.FMLInjectionData;
1923

@@ -36,4 +40,10 @@ public static void sendToPlayer(String message, Object... args) {
3640
} catch (Exception ignored) {}
3741

3842
}
43+
44+
@Override
45+
public void postInit(FMLPostInitializationEvent event) {
46+
super.postInit(event);
47+
setKeyboard(KeyboardType);
48+
}
3949
}

0 commit comments

Comments
 (0)