Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entity Distance does not save #65

Closed
NoComment1105 opened this issue Jul 8, 2020 · 5 comments · Fixed by #81
Closed

Entity Distance does not save #65

NoComment1105 opened this issue Jul 8, 2020 · 5 comments · Fixed by #81
Labels
S-confirmed Status: Confirmed T-bug Type: Bug

Comments

@NoComment1105
Copy link

NoComment1105 commented Jul 8, 2020

Expected Behavior

When altering entity distance you set it to what you want and click apply

Actual Behavior

It just resets to 100% each time

Reproduction Steps

Not exactly causing a crash just what I noticed

  1. Go into settings
  2. Alter entity distance, click apply and leave settings
  3. go back into settings and see 100%

System Information

  • Java Version: [1.8.0_51 64-bit]
  • CPU: [Intel i5 5300 U @2.30GHz]
  • GPU: [Intel HD Graphics 5500]
  • DirectX: [Version 12]
  • RAM: [8 GB]
@NoComment1105 NoComment1105 added the T-bug Type: Bug label Jul 8, 2020
@jellysquid3 jellysquid3 added the S-tofu Status: Developer can't reproduce label Jul 10, 2020
@amnotbananaama
Copy link
Contributor

@NoComment1105 Are you still able to reproduce this? I can't reproduce the issue, the value is saved properly for me.

@NoComment1105
Copy link
Author

@NoComment1105 Are you still able to reproduce this? I can't reproduce the issue, the value is saved properly for me.

Yes i am still able to reproduce, however it is only when you lower the entity distance and not when you raise it

@amnotbananaama
Copy link
Contributor

Confirmed on the latest commit (currently jellysquid3@885222a).

Analysis
It looks like the problematic line of code is the Math.round() function here. Since the values for Entity Distance 50% and 75% are converted to 0.5 and 0.75 respectively, the Math.round() function rounds them to the nearest integer (which would be 1.0 or 100%). This has the effect of the option appearing not to save even though it is saving a rounded result. I'm not sure what the best fix for this would be, as I'm not sure of Jelly's preferences or alternative rounding operations to use.

@NoComment1105
Copy link
Author

Confirmed on the latest commit (currently 885222a).

Analysis
It looks like the problematic line of code is the Math.round() function here. Since the values for Entity Distance 50% and 75% are converted to 0.5 and 0.75 respectively, the Math.round() function rounds them to the nearest integer (which would be 1.0 or 100%). This has the effect of the option appearing not to save even though it is saving a rounded result. I'm not sure what the best fix for this would be, as I'm not sure of Jelly's preferences or alternative rounding operations to use.

OK, thanks for still looking into it even though you couldn't reproduce initially, will this be fixed for the next version?

@CalXee
Copy link

CalXee commented Oct 22, 2020

In 1.16.2+, you can save it above 100%. It just won't do anything.

@amnotbananaama amnotbananaama added S-confirmed Status: Confirmed and removed S-tofu Status: Developer can't reproduce labels Dec 12, 2020
@LucilleTea LucilleTea added this to the Release 0.2 milestone Jun 5, 2021
@amnotbananaama amnotbananaama added the R-pending-release Resolution: Pending release label Jun 5, 2021
@jellysquid3 jellysquid3 removed the R-pending-release Resolution: Pending release label Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-confirmed Status: Confirmed T-bug Type: Bug
Development

Successfully merging a pull request may close this issue.

5 participants