Skip to content

Commit

Permalink
Fix incorrect fluid pushing velocity
Browse files Browse the repository at this point in the history
Forgot to re-assign the flow vector variable with the scaled
flow.
  • Loading branch information
Spottedleaf committed Sep 30, 2024
1 parent a4770ac commit 340ac4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public boolean updateFluidHeightAndDoFluidPushing(final TagKey<Fluid> fluid, fin
pushVector = pushVector.normalize();
}

pushVector.scale(flowScale);
pushVector = pushVector.scale(flowScale);
if (Math.abs(currMovement.x) < 0.003 && Math.abs(currMovement.z) < 0.003 && pushVector.length() < 0.0045000000000000005) {
pushVector = pushVector.normalize().scale(0.0045000000000000005);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void updateFluidHeightAndDoFluidPushing() {
pushVector = pushVector.normalize();
}

pushVector.scale(this.getFluidMotionScale(type));
pushVector = pushVector.scale(this.getFluidMotionScale(type));
if (Math.abs(currMovement.x) < 0.003 && Math.abs(currMovement.z) < 0.003 && pushVector.length() < 0.0045000000000000005) {
pushVector = pushVector.normalize().scale(0.0045000000000000005);
}
Expand Down

0 comments on commit 340ac4e

Please sign in to comment.