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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user