Skip to content

Commit 9af0b83

Browse files
committed
修复了在TFRU里锻造各种机械外壳时崩溃的bug(TFR可能也有这个问题), 不确定是否会因为这次修复导致某些配方无法锻造, 不建议非TFR/TFRU玩家使用这个版本的mod
1 parent a71798a commit 9af0b83

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/com/eternal130/tfcaf/Util.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public static void preCalculator() {
9494
operationsTfc.put(4, 5);
9595
operationsTfc.put(5, 6);
9696
operationsTfc.put(6, 7);
97+
operationsTfc.put(-1, 3);
9798
buttonMapping.put(0, 3);
9899
buttonMapping.put(1, 2);
99100
buttonMapping.put(2, 1);

src/main/java/com/eternal130/tfcaf/config/ConfigFile.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ public static void synchronizeConfiguration(File configFile) {
2424
}
2525

2626
public static void load() {
27-
enableAutoForging = config.getBoolean(
28-
"enableAutoForging",
29-
Configuration.CATEGORY_GENERAL,
30-
true,
31-
"Is it fully automatic forging?");
27+
enableAutoForging = config
28+
.getBoolean("enableAutoForging", Configuration.CATEGORY_GENERAL, true, "Is it fully automatic forging?");
3229
enableForgingTip = config.getBoolean(
3330
"enableForgingTip",
3431
Configuration.CATEGORY_GENERAL,

0 commit comments

Comments
 (0)