From 24458879a4960dbd105c3e2f0496c552488182a6 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 24 Jan 2019 20:55:46 -0800 Subject: [PATCH] Fixing a bug where an ability length cap of 0 did not properly update skill commands Fixes #3709 --- .../java/com/gmail/nossr50/commands/skills/SkillCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/commands/skills/SkillCommand.java b/src/main/java/com/gmail/nossr50/commands/skills/SkillCommand.java index 4fdf3dbf4..84375a355 100644 --- a/src/main/java/com/gmail/nossr50/commands/skills/SkillCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/skills/SkillCommand.java @@ -230,7 +230,7 @@ public abstract class SkillCommand implements TabExecutor { int length; - if(abilityLengthCap < 0) + if(abilityLengthCap <= 0) { length = 2 + (int) (skillValue / abilityLengthVar); }