Velocity fix
This commit is contained in:
parent
76da92f42e
commit
ef797aa599
@ -158,19 +158,19 @@ public class QuiverPayload extends TeamGame
|
||||
{
|
||||
_minecart.setVelocity(_minecart.getVelocity().normalize().multiply(0.1));
|
||||
}
|
||||
_lastDirection = _minecart.getVelocity();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (_lastDirection == null)
|
||||
{
|
||||
_minecart.setVelocity(new Vector(0.1, 0, 0));
|
||||
_lastDirection = _minecart.getVelocity();
|
||||
}
|
||||
else
|
||||
{
|
||||
_minecart.setVelocity(_minecart.getVelocity().normalize().multiply(0.1));
|
||||
_lastDirection = _minecart.getVelocity();
|
||||
}
|
||||
_lastDirection = _minecart.getVelocity();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user