File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/kotlin/br/com/gamemods/j2nwc Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,12 @@ Click the link above to see the future.
12
12
- [ #84 ] Mappings for Minecraft Java Edition 1.15 items and blocks
13
13
14
14
### Changed
15
+ - ` WorldConverter.convert() ` now throws ` IOException ` in java ** (breaking change)**
16
+ - Updated [ Region-Manipulator to ` 2.0.0 ` ] [ Region 2.0.0 ] from ` 1.1.0 ` ** (breaking change)**
15
17
- [ #84 ] The source world must be optimized by Minecraft 1.15.2 now
16
18
- If the converter finds an unmapped block
17
19
it will now be converted as 248:0 (minecraft: info_update ) instead of 1:15 (stone with invalid data)
18
20
- sweet_berries and shield are no longer replaced, they are obtainable in Nukkit 1.X now
19
- - Updated [ Region-Manipulator to ` 2.0.0 ` ] [ Region 2.0.0 ] from ` 1.1.0 ` .
20
21
- Honey bottle and all banner patterns are no longer replaced, they aren't obtainable in Nukkit 1.X but
21
22
the server won't break if you have these items in your inventory anymore.
22
23
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import br.com.gamemods.j2nwc.internal.PostWorldConversionHook
4
4
import br.com.gamemods.j2nwc.internal.convertLevelFile
5
5
import br.com.gamemods.j2nwc.internal.convertRegionFile
6
6
import java.io.File
7
+ import java.io.IOException
7
8
8
9
/* *
9
10
* A region position extracted from the region file name.
@@ -81,7 +82,10 @@ class WorldConverter(val from: File, val to: File) {
81
82
82
83
/* *
83
84
* Executes the conversion in the current thread. Will take a while to complete.
85
+ *
86
+ * @throws IOException If an error occurs while loading or writing the files
84
87
*/
88
+ @Throws(IOException ::class )
85
89
fun convert () {
86
90
check(to.isDirectory || to.mkdirs()) {
87
91
" Failed to create the folder $to "
You can’t perform that action at this time.
0 commit comments