fixed jewel cutting config option

This commit is contained in:
alterNERDtive 2023-08-20 19:08:46 +02:00
parent 9f8da672b1
commit ff6cd430f2
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1
2 changed files with 5 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# devel
* Updated dependencies for Vault Hunters 3.11.2.2.
* Fixed jewel cutting tweaks being en-/disabled via the Jeweller expertise switch, the dedicated option now takes effect.
# 3.11.2.1 (2023-08-07)

View file

@ -51,10 +51,14 @@ public abstract class MixinVaultJewelCuttingConfig extends Config {
@Override
protected void onLoad(Config oldConfigInstance) {
super.onLoad(oldConfigInstance);
if (Configuration.JEWELER_ENABLED.get()) {
float chance = Configuration.JEWELER_CHANCE.get().floatValue();
VaultModTweaks.LOGGER.info(I18n.get("the_vault_tweaks.log.inject.jewelcutting.failurechance", chance));
this.jewelCuttingModifierRemovalChance = chance;
}
if (Configuration.JEWELS_ENABLED.get()) {
int min = Configuration.JEWELS_MIN.get();
int max = Configuration.JEWELS_MAX.get();
VaultModTweaks.LOGGER.info(I18n.get("the_vault_tweaks.log.inject.jewelcutting.sizes", min, max));