delaying of carpet startup due to extensions not loaded

This commit is contained in:
gnembon committed 2020-06-05 21:26:47 -03:00
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)
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)
{
CarpetServer.onGameStarted();
@@ -10,7 +10,10 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(Main.class)
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)
{
CarpetServer.onGameStarted();