targetting familar faces
This commit is contained in:
1 parent
10009a9381
commit
f5dd01cce8
2 files changed
+3
-5
No files matched your search
@@ -10,11 +10,10 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
@Mixin(Main.class)
|
@Mixin(Main.class)
|
||||||
public class Main_clientCoreMixin
|
public class Main_clientCoreMixin
|
||||||
{
|
{
|
||||||
@SuppressWarnings("UnresolvedMixinReference")
|
|
||||||
@Inject(method = "main", at = @At( // little bit later giving extensions time to react an join the train
|
@Inject(method = "main", at = @At( // little bit later giving extensions time to react an join the train
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Ljoptsimple/OptionParser;parse([Ljava/lang/String;)Ljoptsimple/OptionSet;")
|
target = "Lnet/minecraft/util/crash/CrashReport;initCrashReport()V"
|
||||||
)
|
))
|
||||||
private static void onServerStarted(String[] args, CallbackInfo ci)
|
private static void onServerStarted(String[] args, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
CarpetServer.onGameStarted();
|
CarpetServer.onGameStarted();
|
||||||
|
|||||||
@@ -10,10 +10,9 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
@Mixin(Main.class)
|
@Mixin(Main.class)
|
||||||
public class Main_serverCoreMixin
|
public class Main_serverCoreMixin
|
||||||
{
|
{
|
||||||
@SuppressWarnings("UnresolvedMixinReference")
|
|
||||||
@Inject(method = "main", at = @At( // little bit later than main to add chance for extensions to register.
|
@Inject(method = "main", at = @At( // little bit later than main to add chance for extensions to register.
|
||||||
value = "INVOKE",
|
value = "INVOKE",
|
||||||
target = "Ljoptsimple/OptionParser;parse([Ljava/lang/String;)Ljoptsimple/OptionSet;")
|
target = "Lnet/minecraft/util/crash/CrashReport;initCrashReport()V")
|
||||||
)
|
)
|
||||||
private static void onServerStarted(String[] args, CallbackInfo ci)
|
private static void onServerStarted(String[] args, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user