This commit is contained in:
alterNERDtive 2023-07-02 16:56:29 +02:00
parent 7e1668ab4c
commit 0b3b86b911
Signed by: alterNERDtive
GPG key ID: 547787A4FE6533F1

View file

@ -17,10 +17,7 @@
*/ */
package tv.alterNERD.VaultModTweaks.integration.mixin; package tv.alterNERD.VaultModTweaks.integration.mixin;
import java.util.List;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@ -52,7 +49,7 @@ public class MixinVaultGearEnchantmentConfig {
cancellable = true, cancellable = true,
remap = false remap = false
) )
private void readJsonCallback(EnchantmentEntry enrty, CallbackInfoReturnable<EnchantmentCost> ci) { private void readJsonCallback(EnchantmentEntry entry, CallbackInfoReturnable<EnchantmentCost> ci) {
if (Configuration.ENCHANTS_FORFREE.get()) { if (Configuration.ENCHANTS_FORFREE.get()) {
VaultModTweaks.LOGGER.info(I18n.get("the_vault_tweaks.log.inject.enchanter.forfree")); VaultModTweaks.LOGGER.info(I18n.get("the_vault_tweaks.log.inject.enchanter.forfree"));
ci.setReturnValue(EnchantmentCost.EMPTY); ci.setReturnValue(EnchantmentCost.EMPTY);