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

Mob drops not saved when set to decimals #1021

Closed
SkytraceXLSU opened this issue Mar 27, 2022 · 12 comments
Closed

Mob drops not saved when set to decimals #1021

SkytraceXLSU opened this issue Mar 27, 2022 · 12 comments
Assignees
Labels
✔️ Confirmed Confirmed bugs that can be replicated 🔧 Potential fix A potential fix was already submitted

Comments

@SkytraceXLSU
Copy link

SkytraceXLSU commented Mar 27, 2022

Minecraft's Version

1.18.1

Plugin's Version

SuperiorSkyblock2-1.9.0-b557

Describe the bug

I have a problem for the /is admin setupgrade ( or other type upgrade is ) are reset at restart server ( we use custome menu for give cmd )

To Reproduce

with TrMenu do a custom menu and givi cmd
- 'CONSOLE: is admin setmobdrops %superior_island_name% 1.30'

Additional Information

No response

@SkytraceXLSU SkytraceXLSU added the Pending Pending reports to be investigated label Mar 27, 2022
@OmerBenGera
Copy link
Member

You said /is admin setupgrade resets, however you mentioned /is admin setmobdrops.
What does exactly reset? The upgrade level or the mob drops multiplier?

@SkytraceXLSU
Copy link
Author

SkytraceXLSU commented Mar 27, 2022 via email

@SkytraceXLSU
Copy link
Author

SkytraceXLSU commented Mar 27, 2022 via email

@OmerBenGera
Copy link
Member

good evening only the /is admin does not reset any other upgrade commands work correctly when /is admin show did but when the server restarts at 5am everything returns to level 1 for example : /is admin setmobdrops [is name] 1.30 and when the server restarts it returns to 1.00 Le dim. 27 mars 2022 à 20:44, Slytrace X @.> a écrit :

bonsoir seul le /is admin ne se reset pas toute autre commandes d'upgrade fonctionne correctement quand l'ont fait /is admin show mais quand le serveur restart a 5h du matin tout revient au niveau 1 par exemple : /is admin setmobdrops [is name] 1.30 et quand le serveur restart ca revient a 1.00 https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Garanti sans virus. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#m_4705671981073904328_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> Le dim. 27 mars 2022 à 20:28, Ome_R @.
> a écrit : > You said /is admin setupgrade resets, however you mentioned /is admin > setmobdrops. > What does exactly reset? The upgrade level or the mob drops multiplier? > > — > Reply to this email directly, view it on GitHub > <#1021 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/ASZ7SH6YQLAWNDUBJ5QIMC3VCCSD5ANCNFSM5RYXTASQ > . > You are receiving this because you authored the thread.Message ID: > @.***> >

If you set the mob drops to 2, does it reset as well?

@SkytraceXLSU
Copy link
Author

hi yes setmobsdrops at 2.00 stay after reset

@OmerBenGera
Copy link
Member

hi yes setmobsdrops at 2.00 stay after reset

That is because you cant use decimals for mob-drops.
I will make sure to fix it in commands as well.

@OmerBenGera OmerBenGera added ✔️ Confirmed Confirmed bugs that can be replicated and removed Pending Pending reports to be investigated labels Mar 29, 2022
@OmerBenGera OmerBenGera changed the title /is admin setupgrade reset at the restart server Mob drops not saved when set to decimals Mar 29, 2022
@SkytraceXLSU
Copy link
Author

ahhh okay thx but was it possible to pass that in float ? in future update ?

@OmerBenGera
Copy link
Member

ahhh okay thx but was it possible to pass that in float ? in future update ?

Probably not, as it doesn't make a lot of sense.
If you make the multiplier as 1.3, in most cases it will act the same as 1 as drop counts cannot be floats

@OmerBenGera
Copy link
Member

I looked at the code again, and it seems like I did actually added support for decimals for mob drops, spawner rates and crop growth. I also tried setting my mob drops to 1.3 and it was saved after a restart.

What database are you using? SQLite or MySQL?

@Teyir
Copy link
Contributor

Teyir commented Apr 1, 2022

Hey,

@SkytraceXLSU is my mate.

We use MySQL 5.7

Thank you

@OmerBenGera OmerBenGera added the 🔧 Potential fix A potential fix was already submitted label Apr 1, 2022
@OmerBenGera
Copy link
Member

Check out latest dev build, let me know if it works for you.
You'll have to save the mob drops again for it to properly get saved.

@OmerBenGera
Copy link
Member

Seems to be fixed, closing this
If it still occurs, lmk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✔️ Confirmed Confirmed bugs that can be replicated 🔧 Potential fix A potential fix was already submitted
Projects
None yet
Development

No branches or pull requests

3 participants