File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
src/main/java/com/flansmod/common/driveables Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -466,8 +466,6 @@ world.isRemote && getSeat(0) != null && getSeat(0).getControllingPassenger() ins
466
466
int numPropsWorking = 0 ;
467
467
int numProps = 0 ;
468
468
469
- float fuelConsumptionMultiplier = 2F ;
470
-
471
469
switch (mode )
472
470
{
473
471
case HELI :
@@ -509,7 +507,7 @@ world.isRemote && getSeat(0) != null && getSeat(0).getControllingPassenger() ins
509
507
motionY *= drag ;
510
508
motionZ *= drag ;
511
509
512
- data .fuelInTank -= upwardsForce * fuelConsumptionMultiplier * data .engine .fuelConsumption ;
510
+ data .fuelInTank -= upwardsForce * data .engine .fuelConsumption * 2F ;
513
511
514
512
break ;
515
513
@@ -571,7 +569,7 @@ world.isRemote && getSeat(0) != null && getSeat(0).getControllingPassenger() ins
571
569
motionY *= drag ;
572
570
motionZ *= drag ;
573
571
574
- data .fuelInTank -= throttleScaled * fuelConsumptionMultiplier * data .engine .fuelConsumption ;
572
+ data .fuelInTank -= Math . abs ( throttle ) * throttleScaled * data .engine .fuelConsumption * 10F ;
575
573
break ;
576
574
default :
577
575
break ;
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ world.isRemote && getSeat(0) != null && getSeat(0).getControllingPassenger() ins
390
390
{
391
391
if (!driverIsCreative ())
392
392
{
393
- data .fuelInTank -= data .engine .fuelConsumption * Math .abs (throttle );
393
+ data .fuelInTank -= data .engine .fuelConsumption * Math .abs (throttle ) * 0.05F ;
394
394
}
395
395
396
396
if (getVehicleType ().tank )
Original file line number Diff line number Diff line change @@ -639,7 +639,7 @@ else if(playerDriver == null)
639
639
640
640
//If we can't thrust creatively, we must thrust using fuel. Nom.
641
641
if (!isCreative )
642
- data .fuelInTank -= data .engine .fuelConsumption ;
642
+ data .fuelInTank -= data .engine .fuelConsumption * 0.5F ;
643
643
}
644
644
}
645
645
You can’t perform that action at this time.
0 commit comments