1
mirror of https://github.com/Shiewk/ViewServerResources.git synced 2026-04-28 03:44:17 +02:00

Allow management of whitelisted URLs and hosts through Mod Menu

This commit is contained in:
Shy
2024-08-24 16:31:38 +02:00
parent 45d1c075f8
commit f09aeadc6e
8 changed files with 206 additions and 1 deletions
@@ -17,6 +17,7 @@ import net.minecraft.client.MinecraftClient;
import java.io.*;
import java.net.URL;
import java.util.List;
public class ResourcePackPrivacyClient implements ClientModInitializer {
@@ -102,6 +103,14 @@ public class ResourcePackPrivacyClient implements ClientModInitializer {
}
}
public static List<String> getWhitelistedURLs() {
return whitelistedURLs;
}
public static List<String> getWhitelistedHosts() {
return whitelistedHosts;
}
@Override
public void onInitializeClient() {
whitelistFile = new File(MinecraftClient.getInstance().runDirectory.getPath() + "/resourcepackprivacy.json");