Skip to content

Commit

Permalink
i dont know what I am doing
Browse files Browse the repository at this point in the history
  • Loading branch information
Goby56 committed Aug 18, 2024
1 parent 7e2a501 commit fa02f9a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/goby56/wakes/config/WakesConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void setUpper(int upper) {
public float splashPlaneWidth = 2f;
public float splashPlaneHeight = 1.5f;
public float splashPlaneDepth = 3f;
public float splashPlaneOffset = -0.1f;
public float splashPlaneOffset = -0.2f;
public float splashPlaneGap = 1f;
public int splashPlaneResolution = 5;
public float maxSplashPlaneVelocity = 0.5f;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/goby56/wakes/config/YACLIntegration.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static Screen createScreen(Screen parent) {
.controller(opt -> floatSlider(opt, 0.1f, 2f, 0.1f))
.build())
.option(optionOf(Float.class, "splash_plane.offset", false)
.binding(-0.1f, () -> config.splashPlaneOffset, val -> config.splashPlaneOffset = val)
.binding(-0.2f, () -> config.splashPlaneOffset, val -> config.splashPlaneOffset = val)
.controller(opt -> floatSlider(opt, -1f, 1f, 0.1f))
.build())
.option(optionOf(Float.class, "splash_plane.gap", false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void aliveTick(ProducesWake wakeProducer) {
this.yaw = 90f - (float) (180f / Math.PI * Math.atan2(vel.z, vel.x));
}
this.direction = Vec3d.fromPolar(0, -this.yaw);
Vec3d planeOffset = direction.multiply((this.owner.getWidth() + WakesClient.CONFIG_INSTANCE.splashPlaneOffset));
Vec3d planeOffset = direction.multiply(this.owner.getWidth() + WakesClient.CONFIG_INSTANCE.splashPlaneOffset);
Vec3d planePos = this.owner.getPos().add(planeOffset);
this.setPos(planePos.x, wakeProducer.producingHeight(), planePos.z);
}
Expand Down

0 comments on commit fa02f9a

Please sign in to comment.