改版本号,优化灵敏度
This commit is contained in:
parent
2b02eac98b
commit
cebb7b3ba9
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ def getGitCommitHash() {
|
||||||
return stdout.toString().trim()
|
return stdout.toString().trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
version = '0.0.9-SNAPSHOT-' + getGitCommitHash()
|
version = '0.1.0-SNAPSHOT-' + getGitCommitHash()
|
||||||
group = 'com.Atsushio.target'
|
group = 'com.Atsushio.target'
|
||||||
archivesBaseName = 'target'
|
archivesBaseName = 'target'
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ public class MouseHandlerMixin {
|
||||||
float original_fov = mc.options.fov().get();
|
float original_fov = mc.options.fov().get();
|
||||||
|
|
||||||
if (mc.player != null && !mc.player.getMainHandItem().isEmpty() && mc.options.getCameraType() == CameraType.FIRST_PERSON) {
|
if (mc.player != null && !mc.player.getMainHandItem().isEmpty() && mc.options.getCameraType() == CameraType.FIRST_PERSON) {
|
||||||
if (stack.is(TargetModTags.Items.GUN) && (player.getCapability(TargetModVariables.PLAYER_VARIABLES_CAPABILITY, null).orElse(new TargetModVariables.PlayerVariables())).zooming) {
|
if (stack.is(TargetModTags.Items.GUN)) {
|
||||||
additionalAdsSensitivity = (float) Mth.clamp((1 + 0.1f * custom_sens) * (1.25F * fov / original_fov) * (1 + 0.05f * Math.pow((original_fov / fov), 2)), 0.125F, 2F);
|
additionalAdsSensitivity = (float) Mth.clamp((1 + 0.1f * custom_sens) * (1.25F * fov / original_fov) * (1 + 0.05f * Math.pow((original_fov / fov), 2)), 0.125F, 2F);
|
||||||
|
|
||||||
flag = true;
|
flag = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue