From c6cc2a3807cbb6a3e12e77260a1db5c04ce84ef9 Mon Sep 17 00:00:00 2001 From: Penal Buffalo Date: Sun, 24 Nov 2024 09:57:13 -0600 Subject: [PATCH] v4.1.4.1 b78 * fix error when an incomplete `/lm spawner-egg` command is used * rename a few field descriptions when using `/lm rules show-rule` --- gradle.properties | 2 +- .../levelledmobs/commands/subcommands/SpawnerEggCommand.kt | 1 + .../io/github/arcaneplugins/levelledmobs/rules/RuleInfo.kt | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 872235d73..01363aa3c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version = 4.1.4.1 b77 +version = 4.1.4.1 b78 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/commands/subcommands/SpawnerEggCommand.kt b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/commands/subcommands/SpawnerEggCommand.kt index d386da2f1..3de66ef72 100644 --- a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/commands/subcommands/SpawnerEggCommand.kt +++ b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/commands/subcommands/SpawnerEggCommand.kt @@ -68,6 +68,7 @@ object SpawnerEggCommand : SpawnerBaseClass() { sender: CommandSender, input: String ){ + this.commandSender = sender val args = Utils.splitStringWithQuotes(input) var hasGivePlayer = false diff --git a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/rules/RuleInfo.kt b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/rules/RuleInfo.kt index 8a493e661..7b2e885da 100644 --- a/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/rules/RuleInfo.kt +++ b/levelledmobs-plugin/src/main/kotlin/io/github/arcaneplugins/levelledmobs/rules/RuleInfo.kt @@ -134,11 +134,11 @@ class RuleInfo( var mobNBTData: MergeableStringList? = null @field:RuleFieldInfo("skylight level", RuleType.CONDITION) var conditionsSkyLightLevel: MinAndMax? = null - @field:RuleFieldInfo("allowed worlds", RuleType.CONDITION) + @field:RuleFieldInfo("worlds", RuleType.CONDITION) var conditionsWorlds: CachedModalList? = null - @field:RuleFieldInfo("allowed entities", RuleType.CONDITION) + @field:RuleFieldInfo("entities", RuleType.CONDITION) var conditionsEntities: CachedModalList? = null - @field:RuleFieldInfo("allowed biomes", RuleType.CONDITION) + @field:RuleFieldInfo("biomes", RuleType.CONDITION) var conditionsBiomes: CachedModalList? = null @field:RuleFieldInfo("external plugins", RuleType.CONDITION) var conditionsExternalPlugins: CachedModalList? = null