fixed fortune injection logging

This commit is contained in:
alterNERDtive 2023-07-26 10:42:51 +02:00
parent f201b2d37f
commit 21da807b89
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1

View file

@ -57,8 +57,9 @@ public abstract class MixinEnchantmentEntry
if (Configuration.FORTUNE_ENABLED.get()) { if (Configuration.FORTUNE_ENABLED.get()) {
ResourceLocation registryName = this.enchantment.getRegistryName(); ResourceLocation registryName = this.enchantment.getRegistryName();
if (registryName != null && registryName.toString().equals("minecraft:fortune")) { if (registryName != null && registryName.toString().equals("minecraft:fortune")) {
VaultModTweaks.LOGGER.info(I18n.get("the_vault_tweaks.log.inject.fortune.level", 5)); maxFortune = Configuration.FORTUNE_LEVEL.get();
this.level = Configuration.FORTUNE_LEVEL.get(); VaultModTweaks.LOGGER.info(I18n.get("the_vault_tweaks.log.inject.fortune.level", maxFortune));
this.level = maxFortune;
} }
} }
} }