switch to recent Forge and Kotlin versions
This commit is contained in:
10
build.gradle
10
build.gradle
@@ -2,11 +2,11 @@ apply plugin: "net.minecraftforge.gradle.forge"
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
group = 'com.github.octarine-noise'
|
||||
version = "2.1.0"
|
||||
archivesBaseName = rootProject.name + '-MC1.10'
|
||||
version = "2.1.1"
|
||||
archivesBaseName = rootProject.name + '-MC1.10.2'
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.0.2'
|
||||
ext.kotlin_version = '1.0.3'
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
@@ -32,8 +32,8 @@ dependencies {
|
||||
shade "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
||||
}
|
||||
minecraft {
|
||||
version = '1.10-12.18.0.2000-1.10.0'
|
||||
mappings = 'snapshot_20160627'
|
||||
version = '1.10.2-12.18.1.2075'
|
||||
mappings = 'snapshot_20160905'
|
||||
runDir = 'run'
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,6 @@ class OffsetBlockAccess(val original: IBlockAccess, val modded: BlockPos, val ta
|
||||
inline fun actualPos(pos: BlockPos?) =
|
||||
if (pos != null && pos.x == modded.x && pos.y == modded.y && pos.z == modded.z) target else pos
|
||||
|
||||
override fun extendedLevelsInChunkCache() = original.extendedLevelsInChunkCache()
|
||||
override fun getBiome(pos: BlockPos?) = original.getBiome(actualPos(pos))
|
||||
override fun getBlockState(pos: BlockPos?) = original.getBlockState(actualPos(pos))
|
||||
override fun getCombinedLight(pos: BlockPos?, lightValue: Int) = original.getCombinedLight(actualPos(pos), lightValue)
|
||||
|
||||
Reference in New Issue
Block a user