This commit is contained in:
Rammelkast committed 2017-02-04 20:44:34 +01:00
1 parent 792a4ae0a5
commit 583d2de244
1 file changed
+3
@@ -177,6 +177,9 @@ public class Backend {
public CheckResult checkFastBow(Player player, float force) {
// Ignore magic numbers here, they are minecrafty vanilla stuff.
if (!bowWindUp.containsKey(player.getUniqueId())) {
return PASS;
}
int ticks = (int) ((((System.currentTimeMillis() - bowWindUp.get(player.getUniqueId())) * 20) / 1000) + 3);
bowWindUp.remove(player.getUniqueId());
float f = (float) ticks / 20.0F;