Skip to content

Commit 31545ab

Browse files
committed
v2.7.1
1 parent f58e870 commit 31545ab

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
**v1.16.5 - 2.7.1**
2+
* Ore Tweaker now only reads files from the data folder ending in `.json`
3+
14
**v1.16.5 - 2.7.0**
25
* Fixed a game breaking bug where ores with the same properties causes the game to crash.
36
* Updated to the latest forge version.

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
org.gradle.jvmargs=-Xmx3G
33

44
# Mod Info
5-
VERSION=2.7.0
5+
VERSION=2.7.1
66
AUTHOR=Ewy
77
MODNAME=OreTweaker
88
MODID=oretweaker

src/main/java/com/ewyboy/oretweaker/json/JSONHandler.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ public static void loadComplete() {
4242
public static void readAllFiles() {
4343
try (Stream<Path> paths = Files.walk(Paths.get(FMLPaths.CONFIGDIR.get() + "/oretweaker/data"))) {
4444
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+
}
4749
});
4850
} catch (IOException e) {
4951
e.printStackTrace();

0 commit comments

Comments
 (0)