Commit 31545ab 1 parent f58e870 commit 31545ab Copy full SHA for 31545ab
File tree 3 files changed +8
-3
lines changed
src/main/java/com/ewyboy/oretweaker/json
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ** v1.16.5 - 2.7.1**
2
+ * Ore Tweaker now only reads files from the data folder ending in ` .json `
3
+
1
4
** v1.16.5 - 2.7.0**
2
5
* Fixed a game breaking bug where ores with the same properties causes the game to crash.
3
6
* Updated to the latest forge version.
Original file line number Diff line number Diff line change 2
2
org.gradle.jvmargs =-Xmx3G
3
3
4
4
# Mod Info
5
- VERSION =2.7.0
5
+ VERSION =2.7.1
6
6
AUTHOR =Ewy
7
7
MODNAME =OreTweaker
8
8
MODID =oretweaker
Original file line number Diff line number Diff line change @@ -42,8 +42,10 @@ public static void loadComplete() {
42
42
public static void readAllFiles () {
43
43
try (Stream <Path > paths = Files .walk (Paths .get (FMLPaths .CONFIGDIR .get () + "/oretweaker/data" ))) {
44
44
paths .filter (Files :: isRegularFile ).forEach (path -> {
45
- ModLogger .info ("Reading data: " + path .getFileName ());
46
- readJson (path .toFile ());
45
+ if (path .toString ().endsWith (".json" )) {
46
+ ModLogger .info ("Reading data: " + path .getFileName ());
47
+ readJson (path .toFile ());
48
+ }
47
49
});
48
50
} catch (IOException e ) {
49
51
e .printStackTrace ();
You can’t perform that action at this time.
0 commit comments