Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 86d3e3d

Browse files
committed
fixup! docs.
Can be merged into "Dispatch BasicEventHooks and ServerLifecycleHooks to LifecycleEvents"
1 parent f7ba3a9 commit 86d3e3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

patchwork-events-lifecycle/src/main/java/net/minecraftforge/fml/server/ServerLifecycleHooks.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ public static MinecraftServer getCurrentServer() {
3333
return currentServer;
3434
}
3535

36+
// Forge returns `!MinecraftForge.EVENT_BUS.post(...)`, so true == continue, false == cancel.
3637
public static boolean handleServerAboutToStart(final MinecraftServer server) {
3738
LifecycleEvents.handleServerAboutToStart(server);
3839
return true; // patchwork does not allow you to cancel server startup.
3940
}
4041

42+
// Forge returns `!MinecraftForge.EVENT_BUS.post(...)`, so true == continue, false == cancel.
4143
public static boolean handleServerStarting(final MinecraftServer server) {
4244
LifecycleEvents.handleServerStarting(server);
4345
return true; // patchwork does not allow you to cancel server startup.

0 commit comments

Comments
 (0)