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)
|
||||
public class Main_clientCoreMixin
|
||||
{
|
||||
@SuppressWarnings("UnresolvedMixinReference")
|
||||
@Inject(method = "main", at = @At( // little bit later giving extensions time to react an join the train
|
||||
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)
|
||||
{
|
||||
CarpetServer.onGameStarted();
|
||||
|
||||
@@ -10,10 +10,9 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
@Mixin(Main.class)
|
||||
public class Main_serverCoreMixin
|
||||
{
|
||||
@SuppressWarnings("UnresolvedMixinReference")
|
||||
@Inject(method = "main", at = @At( // little bit later than main to add chance for extensions to register.
|
||||
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user