diff --git a/gradle.properties b/gradle.properties index c196ba8d..c3c72903 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 4.1.4 b75 +version = 4.1.4.1 b76 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/managers/LevelManager.kt b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/managers/LevelManager.kt index f249867f..40c3a0ee 100644 --- a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/managers/LevelManager.kt +++ b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/managers/LevelManager.kt @@ -2022,7 +2022,7 @@ class LevelManager : LevelInterface2 { if (lmEntity.livingEntity is Zombie) attribs.add(Addition.ATTRIBUTE_ZOMBIE_SPAWN_REINFORCEMENTS) - else if (main.ver.minorVersion >= 20 && lmEntity.livingEntity is Horse) + else if (main.ver.useHorseJumpAttrib && lmEntity.livingEntity is Horse) attribs.add(Addition.ATTRIBUTE_HORSE_JUMP_STRENGTH) main.levelManager.applyLevelledAttributes(lmEntity, attribs, nbtDatas) diff --git a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/nametag/ServerVersionInfo.kt b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/nametag/ServerVersionInfo.kt index 84aa6f25..52b13995 100644 --- a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/nametag/ServerVersionInfo.kt +++ b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/nametag/ServerVersionInfo.kt @@ -32,6 +32,8 @@ class ServerVersionInfo { private var isOneTwentyFiveOrNewer = false var useOldEnums = false private set + var useHorseJumpAttrib = false + private set // preliminary fabric support. not entirely there yet private var _isRunningFabric: Boolean? = null @@ -55,6 +57,8 @@ class ServerVersionInfo { // 1.21.3 changed various enums to interfaces useOldEnums = minorVersion < 21 || minorVersion == 21 && revision < 3 + + useHorseJumpAttrib = minorVersion >= 21 || (minorVersion == 20 && revision >= 6) } private fun parsePaperVersion(){