From 7cb01726e7eb3f10c7d2d46d58aedd4842972ecd Mon Sep 17 00:00:00 2001 From: Pancakse <84547061+PancakseYT@users.noreply.github.com> Date: Mon, 18 Sep 2023 23:49:05 -0600 Subject: [PATCH] Update AutoUpdate.java --- .../src/main/java/top/leavesmc/leavesclip/AutoUpdate.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java17/src/main/java/top/leavesmc/leavesclip/AutoUpdate.java b/java17/src/main/java/top/leavesmc/leavesclip/AutoUpdate.java index 28e3053..ed50cb8 100644 --- a/java17/src/main/java/top/leavesmc/leavesclip/AutoUpdate.java +++ b/java17/src/main/java/top/leavesmc/leavesclip/AutoUpdate.java @@ -1,4 +1,4 @@ -package top.leavesmc.leavesclip; +package org.netherite.netheriteclip; import java.io.*; import java.util.Arrays; @@ -44,7 +44,7 @@ public static void init() { return; } - System.out.println("Using server core: " + autoUpdateCorePath + " provide by Leavesclip-Auto-Update"); + System.out.println("Using server core: " + autoUpdateCorePath + " provide by Netheriteclip-Auto-Update"); } catch (IOException e) { e.printStackTrace(); } @@ -53,7 +53,7 @@ public static void init() { private static boolean detectionLeavesclipVersion(String jarPath) { byte[] localBytes; - try (InputStream localStream = AutoUpdate.class.getResourceAsStream("/META-INF/leavesclip-version")) { + try (InputStream localStream = AutoUpdate.class.getResourceAsStream("/META-INF/netheriteclip-version")) { if (localStream != null) { localBytes = localStream.readAllBytes(); } else { @@ -63,7 +63,7 @@ private static boolean detectionLeavesclipVersion(String jarPath) { throw new RuntimeException(e); } - try (InputStream externalStream = getResourceAsStream(jarPath, "/META-INF/leavesclip-version")) { + try (InputStream externalStream = getResourceAsStream(jarPath, "/META-INF/netheriteclip-version")) { if (externalStream != null) { return Arrays.equals(localBytes, externalStream.readAllBytes()); }