mirror of
https://github.com/squeek502/Squake.git
synced 2025-08-03 17:58:08 -04:00
code cleanup
This commit is contained in:
parent
da6e99549e
commit
5f82bc8844
@ -24,8 +24,10 @@ import java.util.Random;
|
|||||||
|
|
||||||
public class QuakeClientPlayer
|
public class QuakeClientPlayer
|
||||||
{
|
{
|
||||||
|
private QuakeClientPlayer(){}
|
||||||
|
|
||||||
private static Random random = new Random();
|
private static Random random = new Random();
|
||||||
private static List<double[]> baseVelocities = new ArrayList<double[]>();
|
private static List<double[]> baseVelocities = new ArrayList<>();
|
||||||
|
|
||||||
public static boolean travel(PlayerEntity player, Vec3d movementInput)
|
public static boolean travel(PlayerEntity player, Vec3d movementInput)
|
||||||
{
|
{
|
||||||
@ -142,7 +144,6 @@ public class QuakeClientPlayer
|
|||||||
float f2 = 0.91F;
|
float f2 = 0.91F;
|
||||||
if (player.isOnGround())
|
if (player.isOnGround())
|
||||||
{
|
{
|
||||||
f2 = 0.54600006F;
|
|
||||||
BlockPos groundPos = new BlockPos(MathHelper.floor(player.getX()), MathHelper.floor(player.getBoundingBox().minY) - 1, MathHelper.floor(player.getZ()));
|
BlockPos groundPos = new BlockPos(MathHelper.floor(player.getX()), MathHelper.floor(player.getBoundingBox().minY) - 1, MathHelper.floor(player.getZ()));
|
||||||
Block ground = player.world.getBlockState(groundPos).getBlock();
|
Block ground = player.world.getBlockState(groundPos).getBlock();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user