Fix FMLServerAboutToStartEvent being fired too late on the integrated server https://github.com/MinecraftForge/MinecraftForge/issues/6859

This commit is contained in:
pupnewfster 2020-06-27 11:57:44 -04:00 committed by cpw
parent d11a582a25
commit b00c91af3c
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
--- a/net/minecraft/server/integrated/IntegratedServer.java
+++ b/net/minecraft/server/integrated/IntegratedServer.java
@@ -60,8 +60,9 @@
@@ -59,9 +59,10 @@
this.func_71245_h(true);
field_147148_h.info("Generating keypair");
this.func_71253_a(CryptManager.func_75891_b());
this.func_240800_l__();
+ if (!net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerAboutToStart(this)) return false;
this.func_240800_l__();
this.func_71205_p(this.func_71214_G() + " - " + this.func_240793_aU_().func_76065_j());
- return true;
+ return net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerStarting(this);