Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit b4c23b6

Browse files
committed
Fixes java 8 compatibility fixes #65 #62.
1 parent 99036ea commit b4c23b6

4 files changed

Lines changed: 23 additions & 3 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010
}
1111

12-
val versionObj = Version("1", "1", "2",
12+
val versionObj = Version("1", "1", "3",
1313
preRelease = (System.getenv("IPNEXT_RELEASE") == null))
1414

1515

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<!-- latest begin -->
2+
3+
### 1.1.3
4+
- fixed java 8 incompatibility for 1.16.5 builds
25
### 1.1.2
36
- brand new Simplified Chinese translation thanks to @PVWXX
47
- profiles now support empty slots. For example in one profile you have shield in the offhend slot and another profile want it empty. For items moved out in this case an attempt will be made to move them in a free locked slot.<br>

common/src/main/java/org/anti_ad/mc/common/extensions/java_io.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.anti_ad.mc.common.extensions
22

3+
import java.io.File
34
import java.nio.file.Files
45
import java.nio.file.Path
56
import java.nio.file.Paths
@@ -22,9 +23,13 @@ fun Path.listFiles(regex: String): List<Path> = FileUtils.listFiles(this.toFile(
2223
*/
2324
fun Path.listFiles(regex: String): List<Path> {
2425
val match = Regex(regex)
25-
return Files.walk(this).filter {
26+
val res: MutableList<Path> = mutableListOf()
27+
Files.walk(this).filter {
2628
match.matches(it.name)
27-
}.toList()
29+
}.forEach {
30+
res.add(it)
31+
}
32+
return res
2833
}
2934

3035

description/description.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ This mod will:
2727
</tr>
2828
</table>
2929

30+
## Like the mod? Consider buying me a coffee.
31+
<table>
32+
<tbody>
33+
<tr>
34+
<td></td>
35+
<td></td>
36+
<td>
37+
<iframe class="center" src="https://github.com/sponsors/blackd/button" height="35" width="116"></iframe>
38+
</td>
39+
</tr>
40+
</tbody>
41+
</table>
3042
## What's new
3143

3244
!include`snippetStart="<!-- latest begin -->", snippetEnd="<!-- latest end -->"` ../changelog.md

0 commit comments

Comments
 (0)