diff --git a/build.gradle b/build.gradle index c156989..75865cc 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ plugins { } group 'br.com.gamemods' -version '2.0.1-SNAPSHOT' +version '2.0.2-SNAPSHOT' sourceSets.main.java.srcDirs = ["src/main/kotlin"] sourceSets.test.java.srcDirs = ["src/test/kotlin"] diff --git a/src/main/kotlin/br/com/gamemods/regionmanipulator/Chunk.kt b/src/main/kotlin/br/com/gamemods/regionmanipulator/Chunk.kt index a50c073..d9a83b1 100644 --- a/src/main/kotlin/br/com/gamemods/regionmanipulator/Chunk.kt +++ b/src/main/kotlin/br/com/gamemods/regionmanipulator/Chunk.kt @@ -30,7 +30,7 @@ data class Chunk(var lastModified: Date, var nbtFile: NbtFile) { * The `Level` tag, all chunk details like entities, tile entities, chunk sections, etc are stored here. */ val level: NbtCompound - get() = compound.getCompound("Level") + get() = Optional.ofNullable(compound.getNullableCompound("Level")).orElse(compound) /** * The X/Z position in the world where this chunk resides.