Skip to content

Commit

Permalink
Fix StoppingEngineEvent being fired too late on Forge (#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
XXMA16 authored Feb 7, 2024
1 parent 43661ca commit 41632c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import net.minecraftforge.event.entity.EntityAttributeCreationEvent;
import net.minecraftforge.event.server.ServerAboutToStartEvent;
import net.minecraftforge.event.server.ServerStartedEvent;
import net.minecraftforge.event.server.ServerStoppedEvent;
import net.minecraftforge.event.server.ServerStoppingEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
Expand Down Expand Up @@ -130,7 +130,7 @@ public void onServerStarted(final ServerStartedEvent event) {
}

@SubscribeEvent
public void onServerStoppedEvent(final ServerStoppedEvent event) {
public void onServerStoppingEvent(final ServerStoppingEvent event) {
final Lifecycle lifecycle = Launch.instance().lifecycle();
lifecycle.callStoppingEngineEvent((Server) event.getServer());
}
Expand Down

0 comments on commit 41632c9

Please sign in to comment.