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

Random Enchants quality settings not applied #52

Open
akanix42 opened this issue Mar 16, 2019 · 2 comments
Open

Random Enchants quality settings not applied #52

akanix42 opened this issue Mar 16, 2019 · 2 comments
Labels
bug Something isn't working module A bug, issue, or feature for a module stygiancore A bug, feature, or tool in the StygianCore repack

Comments

@akanix42
Copy link

akanix42 commented Mar 16, 2019

I haven't modified the default configuration, but I'm regularly getting gray items with enchantments.
When I look in mod_randomenchants.conf.dist, it is set to:

RandomEnchants.HighQuality = 4
RandomEnchants.LowQuality = 3

However, when I look at the source code:

if ((Quality < LowQuality && Quality > HighQuality) || (Class != 2 && Class != 4))

I believe the first test should be (Quality < LowQuality || Quality > HighQuality) as otherwise it will always be false as long as LowQuality <= HighQuality (and it seems unlikely to me that the alternative, where HighQuality < LowQuality, is what you intended).

@StygianTheBest
Copy link
Owner

Thanks for the report! Yes, as indicated in the source, this needed further testing to ensure it was performing as intended. If you want to test it and open a PR that would be excellent, if not, I'll test it when I get the time and push it out on the next release.

@StygianTheBest StygianTheBest added bug Something isn't working stygiancore A bug, feature, or tool in the StygianCore repack module A bug, issue, or feature for a module labels Mar 18, 2019
@StygianTheBest
Copy link
Owner

I'm merging many reported issues with this module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module A bug, issue, or feature for a module stygiancore A bug, feature, or tool in the StygianCore repack
Projects
None yet
Development

No branches or pull requests

2 participants