mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 22:16:01 +00:00
Revert registry changes and add LOAD & UNLOAD world events to fix DH
This commit is contained in:
1 parent
297db34bab
commit
79be2171c2
4 files changed
+25
-96
No files matched your search
@@ -36,6 +36,7 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
||||
import it.unimi.dsi.fastutil.ints.IntIterator;
|
||||
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
||||
import it.unimi.dsi.fastutil.ints.IntSet;
|
||||
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerWorldEvents;
|
||||
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
|
||||
import net.minecraft.Util;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -726,6 +727,7 @@ public class ReplayServer extends IntegratedServer {
|
||||
return;
|
||||
}
|
||||
this.clearLevel(serverLevel);
|
||||
ServerWorldEvents.UNLOAD.invoker().onWorldUnload(this, serverLevel);
|
||||
try {
|
||||
serverLevel.close();
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in new issue
Block a user