delaying of carpet startup due to extensions not loaded
This commit is contained in:
1 parent
8925756bf4
commit
a8a22e1403
2 files changed
+8
-2
No files matched your search
@@ -10,7 +10,10 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
@Mixin(Main.class)
|
@Mixin(Main.class)
|
||||||
public class Main_clientCoreMixin
|
public class Main_clientCoreMixin
|
||||||
{
|
{
|
||||||
@Inject(method = "main", at = @At("HEAD"))
|
@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;")
|
||||||
|
)
|
||||||
private static void onServerStarted(String[] args, CallbackInfo ci)
|
private static void onServerStarted(String[] args, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
CarpetServer.onGameStarted();
|
CarpetServer.onGameStarted();
|
||||||
|
|||||||
@@ -10,7 +10,10 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
@Mixin(Main.class)
|
@Mixin(Main.class)
|
||||||
public class Main_serverCoreMixin
|
public class Main_serverCoreMixin
|
||||||
{
|
{
|
||||||
@Inject(method = "main", at = @At("HEAD"))
|
@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;")
|
||||||
|
)
|
||||||
private static void onServerStarted(String[] args, CallbackInfo ci)
|
private static void onServerStarted(String[] args, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
CarpetServer.onGameStarted();
|
CarpetServer.onGameStarted();
|
||||||
|
|||||||
Reference in new issue
Block a user