From d46f1093f5db3784a1e1ccc0c52b27dad61a3ac7 Mon Sep 17 00:00:00 2001 From: Penal Buffalo Date: Tue, 21 May 2024 13:14:51 -0500 Subject: [PATCH] v4.0.1 b7 * fix various mobs not using their applicable rule groups such as `all_passive_mobs` * add jitpack stuff --- build.gradle.kts | 28 +++++++++++++++++++ gradle.properties | 2 +- .../levelledmobs/MainCompanion.kt | 10 +++---- 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 build.gradle.kts diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 000000000..342106452 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,28 @@ +plugins { + kotlin("jvm") version "1.9.23" + id("org.jetbrains.dokka") version "1.9.20" +} + +apply(plugin = "kotlin") +apply(plugin = "org.jetbrains.dokka") + +repositories { + mavenCentral() + maven("https://jitpack.io") +} + +dependencies { + implementation("io.github.arcaneplugins:LevelledMobs:4.0.0 b6") +} + +subprojects { + apply(plugin = "org.jetbrains.dokka") +} + +val javadocJar = tasks.register("javadocJar") { + archiveClassifier.set("javadoc") +} + +java { + withJavadocJar() +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 3f5c75eb2..c781b253d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 4.0.0 b6 +version = 4.0.1 b7 description = The Ultimate RPG Mob Levelling Solution \ No newline at end of file diff --git a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/MainCompanion.kt b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/MainCompanion.kt index db3f78037..53a91eb5b 100644 --- a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/MainCompanion.kt +++ b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/MainCompanion.kt @@ -547,17 +547,17 @@ class MainCompanion{ EntityType.SNOWMAN )) - if (versionInfo.majorVersion >= 1.19) { + if (versionInfo.minorVersion >= 19) { passiveMobsGroup.addAll(Compat119.getPassiveMobs()) } - if (versionInfo.majorVersion >= 1.20) { + if (versionInfo.minorVersion >= 20) { passiveMobsGroup.addAll(Compat120.getPassiveMobs()) } - if (versionInfo.majorVersion >= 1.21) { + if (versionInfo.minorVersion >= 21) { passiveMobsGroup.addAll(Compat121.getPassiveMobs()) } - if (versionInfo.majorVersion >= 1.19) { + if (versionInfo.minorVersion >= 19) { hostileMobsGroup.addAll(Compat119.getHostileMobs()) } @@ -569,7 +569,7 @@ class MainCompanion{ EntityType.TURTLE )) - if (versionInfo.majorVersion >= 1.19) { + if (versionInfo.minorVersion >= 19) { aquaticMobsGroup.addAll(getAquaticMobs()) } }