re-did earlier changes to playertickhandler, not sure what happened to them

This commit is contained in:
MachineMuse 2013-01-26 00:35:55 -07:00
parent b974b1d50b
commit e31f75eb2e
2 changed files with 4 additions and 2 deletions

View file

@ -508,8 +508,8 @@ public class ItemUtils {
}
public static boolean itemHasActiveModule(ItemStack pants, String module) {
return itemHasModule(pants, module) && isModuleActive(getMuseItemTag(pants), module);
public static boolean itemHasActiveModule(ItemStack itemStack, String moduleName) {
return (itemHasModule(itemStack, moduleName) && isModuleActive(getMuseItemTag(itemStack), moduleName));
}
}

View file

@ -135,6 +135,7 @@ public class PlayerTickHandlerClient implements ITickHandler {
player.motionY += 0.15 * Math.min(multiplier, 1) * getWeightPenaltyRatio(totalWeight, weightCapacity);
MovementManager.setPlayerJumpTicks(player, multiplier - 1);
}
player.jumpMovementFactor = player.landMovementFactor;
} else {
MovementManager.setPlayerJumpTicks(player, 0);
}
@ -203,6 +204,7 @@ public class PlayerTickHandlerClient implements ITickHandler {
foodAdjustment += 0.01 * exhaustion * exhaustionComp;
}
player.jumpMovementFactor = player.landMovementFactor;
}
}