blob: 9ac228f29cd41daacfbad0bd14111f16a6b67dde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package at.hannibal2.skyhanni.mixins.transformers;
import at.hannibal2.skyhanni.events.NEURenderEvent;
import io.github.moulberry.notenoughupdates.NEUOverlay;
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(NEUOverlay.class)
public class MixinNEUOverlay {
@Inject(method = "render", at = @At("HEAD"), cancellable = true, remap = false)
private void render(boolean hoverInv, CallbackInfo ci) {
if (new NEURenderEvent().postAndCatch()) {
ci.cancel();
}
}
}
|