Fix Swim Assist module speed boost for jump and strafe keys.

This commit is contained in:
Leon 2016-12-04 13:40:26 -05:00
parent 84d3356c2f
commit a16de3fc9e

View file

@ -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()) {