Skip to content

Commit

Permalink
wakes not generating fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Goby56 committed Apr 2, 2024
1 parent 9fb6f3d commit 5292139
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ private static int distToLOD(float distance) {
}

public void populatePixels(WakeNode node, float distance, int waterColor, float opacity) {

int lod = distToLOD(distance);
Texture texture = lods.get(lod);
int samples = Math.max(1, node.res / texture.res);
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/goby56/wakes/simulation/WakeNode.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.goby56.wakes.simulation;

import com.goby56.wakes.WakesClient;
import com.goby56.wakes.config.WakesConfig;
import com.goby56.wakes.config.enums.Resolution;
import com.goby56.wakes.utils.WakesUtils;
import net.minecraft.client.MinecraftClient;
import net.minecraft.entity.Entity;
Expand All @@ -18,7 +16,7 @@
public class WakeNode implements Position<WakeNode>, Age<WakeNode> {
private final WakeHandler wakeHandler = WakeHandler.getInstance();

public static int res;
public static int res = WakesClient.CONFIG_INSTANCE.wakeResolution.res;

private static float alpha;
private static float beta;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/goby56/wakes/utils/WakesUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public static void placeWakeTrail(Entity entity) {
// if (velocity < WakesClient.CONFIG_INSTANCE.minimumProducerVelocity) {
// ((ProducesWake) entity).setPrevPos(null);
// }

Vec3d prevPos = producer.getPrevPos();
if (prevPos == null) {
return;
Expand Down

0 comments on commit 5292139

Please sign in to comment.