Skip to content

Commit

Permalink
splash planes stuck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Goby56 committed Apr 3, 2024
1 parent ecd54aa commit 3d62c18
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.goby56.wakes.utils.WakesUtils;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.particle.Particle;
import net.minecraft.client.particle.ParticleFactory;
import net.minecraft.client.particle.ParticleTextureSheet;
Expand All @@ -17,8 +18,8 @@
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.particle.DefaultParticleType;
import net.minecraft.text.Text;
import net.minecraft.util.math.*;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -52,7 +53,7 @@ public void tick() {
this.prevYaw = this.yaw;

if (this.owner instanceof ProducesWake wakeOwner) {
if (!wakeOwner.onWaterSurface() || wakeOwner.getHorizontalVelocity() < 1e-2) {
if (this.owner.isRemoved() || !wakeOwner.onWaterSurface() || wakeOwner.getHorizontalVelocity() < 1e-2) {
this.markDead();
} else {
this.aliveTick(wakeOwner);
Expand Down

0 comments on commit 3d62c18

Please sign in to comment.