blob: 18c0648285a4641cdaa2fb16838c94f2e64ca88a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package io.github.moulberry.notenoughupdates.mixins;
import io.github.moulberry.notenoughupdates.miscfeatures.EnchantingSolvers;
import net.minecraft.inventory.Container;
import net.minecraft.item.ItemStack;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(Container.class)
public class MixinContainer {
@Inject(method = "putStacksInSlots", at = @At("RETURN"))
public void putStacksInSlots(ItemStack[] stacks, CallbackInfo ci) {
EnchantingSolvers.processInventoryContents(false);
}
}
|