Fix Swim Assist module speed boost for jump and strafe keys.
This commit is contained in:
parent
84d3356c2f
commit
a16de3fc9e
|
@ -72,7 +72,7 @@ public class SwimAssistModule extends PowerModuleBase implements IToggleableModu
|
|||
if (jumpkey || sneakkey) {
|
||||
moveRatio += 0.2 * 0.2;
|
||||
}
|
||||
double swimAssistRate = ModuleManager.computeModularProperty(item, SWIM_BOOST_AMOUNT) * 0.05;
|
||||
double swimAssistRate = ModuleManager.computeModularProperty(item, SWIM_BOOST_AMOUNT) * 0.05 * moveRatio;
|
||||
double swimEnergyConsumption = ModuleManager.computeModularProperty(item, SWIM_BOOST_ENERGY_CONSUMPTION);
|
||||
if (swimEnergyConsumption < ElectricItemUtils.getPlayerEnergy(player)) {
|
||||
if ((FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) && NuminaConfig.useSounds()) {
|
||||
|
|
Loading…
Reference in a new issue