Update CapeManager.java

Change from http to https
This commit is contained in:
noil 2020-09-11 11:58:34 -04:00 committed by GitHub
parent 1d30caedc1
commit ad40ac83c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ public final class CapeManager {
final ResourceLocation cape = this.findResource(user.getCape());
if (cape == null) {
final DynamicTexture texture = new DynamicTexture(ImageIO.read(new URL("http://seppuku.pw/files/" + user.getCape())));
final DynamicTexture texture = new DynamicTexture(ImageIO.read(new URL("https://seppuku.pw/files/" + user.getCape())));
if (texture != null) {
final ResourceLocation location = Minecraft.getMinecraft().getTextureManager().getDynamicTextureLocation("seppuku/capes", texture);
if (location != null) {
@ -93,7 +93,7 @@ public final class CapeManager {
*/
protected void downloadCapeUsers() {
try {
final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("http://seppuku.pw/files/capes.txt").openStream()));
final BufferedReader reader = new BufferedReader(new InputStreamReader(new URL("https://seppuku.pw/files/capes.txt").openStream()));
String line;
while ((line = reader.readLine()) != null) {
@ -169,4 +169,4 @@ public final class CapeManager {
public void setCapesMap(HashMap<String, ResourceLocation> capesMap) {
this.capesMap = capesMap;
}
}
}