Fix incorrect fluid pushing velocity

Forgot to re-assign the flow vector variable with the scaled
flow.
This commit is contained in:
Spottedleaf
2024-09-24 12:53:37 -07:00
parent a4770aca2b
commit 340ac4e8f5
2 changed files with 2 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ abstract class EntityMixin {
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);
}

View File

@@ -189,7 +189,7 @@ abstract class EntityMixin implements IEntityExtension {
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);
}