mirror of
https://github.com/GTMEGA/EndlessIDs.git
synced 2026-11-25 02:54:31 +00:00
move spacecore patch to mixin
This commit is contained in:
4 files changed
+32
-3
No files matched your search
+19
@@ -0,0 +1,19 @@
|
||||
package com.falsepattern.endlessids.mixin.mixins.common.dev.spacecore;
|
||||
|
||||
import com.spacechase0.minecraft.spacecore.mcp.ModInfoGenerator;
|
||||
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(value = ModInfoGenerator.class,
|
||||
remap = false)
|
||||
public abstract class ModInfoGeneratorMixin {
|
||||
@Inject(method = "generate",
|
||||
at = @At("HEAD"),
|
||||
cancellable = true,
|
||||
require = 1)
|
||||
private static void noGenerate(CallbackInfo ci) {
|
||||
ci.cancel();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user