Skip to content

Commit

Permalink
fix: do a shutdown() on MapManager before any startUp()
Browse files Browse the repository at this point in the history
Necessary if player is switching servers, e.g. with Velocity proxy or similar

FTBTeam/FTB-Mods-Issues#1377
  • Loading branch information
desht committed Nov 3, 2024
1 parent aca009c commit 54cc9d7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ public static Optional<MapManager> getInstance() {
}

public static void startUp(UUID serverId) {
// Ensure if existing manager instance is cleaned up first
// Necessary if player is switching servers, e.g. with Velocity proxy or similar
shutdown();

Path dir = Platform.getGameFolder().resolve("local/ftbchunks/data/" + serverId);
if (Files.notExists(dir)) {
try {
Expand Down

0 comments on commit 54cc9d7

Please sign in to comment.