Change windup-modifier to not allow going below 0.25 (was possible if the last application was more)

This commit is contained in:
Bernhard Bonigl committed 2014-11-16 21:08:06 +01:00
1 parent 1fe8bb26f3
commit 911755bef7
1 file changed
+1
@@ -77,6 +77,7 @@ public class ModWindup extends ModRedstone {
int baseDrawSpeed = tags.getInteger("BaseDrawSpeed");
int drawSpeed = baseDrawSpeed - (int)boost;
drawSpeed = Math.max(5, drawSpeed); // 0.25f is the minimum
tags.setInteger("DrawSpeed", drawSpeed);
}
}