Skip to content

Commit

Permalink
Change windup-modifier to not allow going below 0.25 (was possible if…
Browse files Browse the repository at this point in the history
… the last application was more)
  • Loading branch information
bonii-xx committed Nov 16, 2014
1 parent 1fe8bb2 commit 911755b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/tconstruct/modifiers/tools/ModWindup.java
Expand Up @@ -77,6 +77,7 @@ public void modify (ItemStack[] input, ItemStack tool)

int baseDrawSpeed = tags.getInteger("BaseDrawSpeed");
int drawSpeed = baseDrawSpeed - (int)boost;
drawSpeed = Math.max(5, drawSpeed); // 0.25f is the minimum
tags.setInteger("DrawSpeed", drawSpeed);
}
}

0 comments on commit 911755b

Please sign in to comment.