Skip to content

Commit

Permalink
slightly further + remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
MBatt1 committed Nov 19, 2024
1 parent e0cf1d7 commit 2889909
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public class FloatingComponent implements AutoSyncedComponent {

private static final int FLOAT_SECONDS = 4;
private static final double FLOAT_SECONDS = 4.1;
private boolean floating = false;
private int floatTime = 0;

Expand All @@ -38,7 +38,7 @@ public int getFloatTime() {

public void addFloating() {
floating = true;
floatTime += 20 * FLOAT_SECONDS;
floatTime += (int) (20 * FLOAT_SECONDS);
}

public void stopFloating() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ protected void moveOffRail(CallbackInfo ci) {
if (!this.isOnGround() && floatingComponent.getFloating() && floatingComponent.getFloatTime() > 0) {
double d = this.getMaxSpeed();
Vec3d vec3d = this.getVelocity();
System.out.println(vec3d);
this.setVelocity(MathHelper.clamp(vec3d.x, -d, d), 0, MathHelper.clamp(vec3d.z, -d, d));
this.move(MovementType.SELF, this.getVelocity());
// decrement
Expand Down

0 comments on commit 2889909

Please sign in to comment.