Skip to content

Commit

Permalink
Explicit functional interface (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ah-OOG-ah authored Jul 12, 2024
1 parent 3b598ae commit 0322efa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/journeymap/client/data/WorldData.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import journeymap.common.version.VersionCheck;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.IReloadableResourceManager;
import net.minecraft.client.resources.IResourceManager;
import net.minecraft.client.resources.IResourceManagerReloadListener;
import net.minecraft.network.NetworkManager;
import net.minecraft.server.integrated.IntegratedServer;
import net.minecraft.world.WorldProvider;
Expand Down Expand Up @@ -82,7 +84,10 @@ public WorldData()
dimNames = new TIntObjectHashMap<>();
((IReloadableResourceManager) Minecraft.getMinecraft()
.getResourceManager())
.registerReloadListener(iResourceManager -> dimNames.clear());
.registerReloadListener(new IResourceManagerReloadListener() {
@Override
public void onResourceManagerReload(IResourceManager p_110549_1_) { dimNames.clear(); }
});
}

public static boolean isHardcoreAndMultiplayer()
Expand Down

0 comments on commit 0322efa

Please sign in to comment.