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

"/Is deposit all" not working properly #1624

Closed
CreeperJockeyJr opened this issue Mar 5, 2023 · 4 comments
Closed

"/Is deposit all" not working properly #1624

CreeperJockeyJr opened this issue Mar 5, 2023 · 4 comments
Assignees
Labels
📝 Missing information Required information is missing

Comments

@CreeperJockeyJr
Copy link

Minecraft's Version

purpur-1.19.2-1856.jar

Plugin's Version

SuperiorSkyblock2-2022.9-b977.jar

Describe the bug

/is deposit all is giving an error to the player, happens at random time. Console shows no error.

To Reproduce

https://youtu.be/QEGPQisfN5U

Additional Information

No response

@CreeperJockeyJr CreeperJockeyJr added the Pending Pending reports to be investigated label Mar 5, 2023
@OmerBenGera
Copy link
Member

What economy plugin are you using?
These errors are mostly related to your economy plugin.

@OmerBenGera OmerBenGera added 📝 Missing information Required information is missing and removed Pending Pending reports to be investigated labels Mar 5, 2023
@airoons
Copy link

airoons commented Mar 7, 2023

Hey @OmerBenGera,

I can add to this more details as I've encountered it myself. So this line https://github.com/BG-Software-LLC/SuperiorSkyblock2/blob/master/Hook_Vault/src/main/java/com/bgsoftware/superiorskyblock/external/economy/EconomyProvider_Vault.java#L45 rounds the transaction amount to #.### (3 decimals after comma).

The issue happens when amount before rounding is smaller than after rounding. For example, 100.9279999 gets rounded to 100.928 and that causes issues...

I resolved this myself by dropping decimals all together (in a SSB2 fork of mine), but you could possibly think of a better solution for this. I hope this will help you!

@CreeperJockeyJr
Copy link
Author

We use CMI

@OmerBenGera
Copy link
Member

Fixed in latest dev build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📝 Missing information Required information is missing
Projects
None yet
Development

No branches or pull requests

3 participants