From a2942a8cea8c102cbb01ea06443b78ceb6120675 Mon Sep 17 00:00:00 2001 From: Voomra Date: Wed, 11 Jun 2025 19:32:14 +0300 Subject: [PATCH] =?UTF-8?q?remove:=20=D1=81=D0=BA=D0=B0=D1=87=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=80=D0=B5=D1=81=D1=83=D1=80=D1=81?= =?UTF-8?q?=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/ThreadDownloadResources.java | 44 +------------------ 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/client/src/main/java/net/minecraft/src/ThreadDownloadResources.java b/client/src/main/java/net/minecraft/src/ThreadDownloadResources.java index 964f1d0..d095b28 100644 --- a/client/src/main/java/net/minecraft/src/ThreadDownloadResources.java +++ b/client/src/main/java/net/minecraft/src/ThreadDownloadResources.java @@ -7,6 +7,7 @@ import javax.xml.parsers.DocumentBuilderFactory; import net.minecraft.client.Minecraft; import org.w3c.dom.*; +@SuppressWarnings("all") public class ThreadDownloadResources extends Thread { /** The folder to store the resources in. */ @@ -38,48 +39,7 @@ public class ThreadDownloadResources extends Thread public void run() { - try - { - URL url = new URL("http://s3.amazonaws.com/MinecraftResources/"); - DocumentBuilderFactory documentbuilderfactory = DocumentBuilderFactory.newInstance(); - DocumentBuilder documentbuilder = documentbuilderfactory.newDocumentBuilder(); - Document document = documentbuilder.parse(url.openStream()); - NodeList nodelist = document.getElementsByTagName("Contents"); - - for (int i = 0; i < 2; i++) - { - for (int j = 0; j < nodelist.getLength(); j++) - { - Node node = nodelist.item(j); - - if (node.getNodeType() != 1) - { - continue; - } - - Element element = (Element)node; - String s = ((Element)element.getElementsByTagName("Key").item(0)).getChildNodes().item(0).getNodeValue(); - long l = Long.parseLong(((Element)element.getElementsByTagName("Size").item(0)).getChildNodes().item(0).getNodeValue()); - - if (l <= 0L) - { - continue; - } - - downloadAndInstallResource(url, s, l, i); - - if (closing) - { - return; - } - } - } - } - catch (Exception exception) - { - loadResource(resourcesFolder, ""); - exception.printStackTrace(); - } + loadResource(resourcesFolder, ""); } /**