mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
Hold sneak when Catapulting for less distance
This commit is contained in:
parent
efd57e989c
commit
efc07ce4c9
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ public class Catapult {
|
||||||
if ((double) distance >= location.distance(origin)) {
|
if ((double) distance >= location.distance(origin)) {
|
||||||
catapult = true;
|
catapult = true;
|
||||||
}
|
}
|
||||||
|
if (player.isSneaking()) distance = distance / 2;
|
||||||
time = System.currentTimeMillis() - interval;
|
time = System.currentTimeMillis() - interval;
|
||||||
starttime = System.currentTimeMillis();
|
starttime = System.currentTimeMillis();
|
||||||
moving = true;
|
moving = true;
|
||||||
|
|
Loading…
Reference in a new issue