From 28899090dec952bebf5eae2819f15998c7c9db28 Mon Sep 17 00:00:00 2001 From: Maxx <53229958+MBatt1@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:34:59 -0600 Subject: [PATCH] slightly further + remove debug print --- .../java/net/id/paradiselost/component/FloatingComponent.java | 4 ++-- .../mixin/entity/AbstractMinecartEntityMixin.java | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/id/paradiselost/component/FloatingComponent.java b/src/main/java/net/id/paradiselost/component/FloatingComponent.java index 3eba5d774..435b6080a 100644 --- a/src/main/java/net/id/paradiselost/component/FloatingComponent.java +++ b/src/main/java/net/id/paradiselost/component/FloatingComponent.java @@ -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; @@ -38,7 +38,7 @@ public int getFloatTime() { public void addFloating() { floating = true; - floatTime += 20 * FLOAT_SECONDS; + floatTime += (int) (20 * FLOAT_SECONDS); } public void stopFloating() { diff --git a/src/main/java/net/id/paradiselost/mixin/entity/AbstractMinecartEntityMixin.java b/src/main/java/net/id/paradiselost/mixin/entity/AbstractMinecartEntityMixin.java index 5707cd7df..3fa5a54f9 100644 --- a/src/main/java/net/id/paradiselost/mixin/entity/AbstractMinecartEntityMixin.java +++ b/src/main/java/net/id/paradiselost/mixin/entity/AbstractMinecartEntityMixin.java @@ -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