Moved GameShuttingDownEvent hook to DedicatedServer class. Fixes #9601

This commit is contained in:
LexManos committed 2023-07-03 17:25:47 -07:00
1 parent 027f4d3d7b
commit 72e2ae1d6f
2 files changed
+8 -9

No files matched your search

@@ -41,15 +41,6 @@
}
}
@@ -538,6 +_,8 @@
}
public void m_7041_() {
+ if (m_130010_() && m_6982_()) net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.GameShuttingDownEvent());
+
if (this.f_177872_.m_142763_()) {
this.m_236737_();
}
@@ -582,6 +_,7 @@
for(ServerLevel serverlevel2 : this.m_129785_()) {
if (serverlevel2 != null) {
@@ -37,3 +37,11 @@
}
}
@@ -492,6 +_,7 @@
}
public void m_7041_() {
+ net.minecraftforge.common.MinecraftForge.EVENT_BUS.post(new net.minecraftforge.event.GameShuttingDownEvent());
super.m_7041_();
Util.m_137580_();
SkullBlockEntity.m_196704_();