Rename method to be more clear this isnt for public use
This commit is contained in:
parent
2568bfe53e
commit
269363753c
@ -1734,7 +1734,7 @@ public class ReflectionManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static byte[] readFully(InputStream input) throws IOException {
|
public static byte[] readFuzzyFully(InputStream input) throws IOException {
|
||||||
byte[] buffer = new byte[8192];
|
byte[] buffer = new byte[8192];
|
||||||
int bytesRead;
|
int bytesRead;
|
||||||
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||||
|
@ -89,7 +89,7 @@ public class WatcherSanitizer {
|
|||||||
|
|
||||||
getBytes = obj.getClass().getMethod("createClassWithoutMethods", String.class, ArrayList.class);
|
getBytes = obj.getClass().getMethod("createClassWithoutMethods", String.class, ArrayList.class);
|
||||||
|
|
||||||
String[] lines = new String(ReflectionManager.readFully(stream), StandardCharsets.UTF_8).split("\n");
|
String[] lines = new String(ReflectionManager.readFuzzyFully(stream), StandardCharsets.UTF_8).split("\n");
|
||||||
|
|
||||||
LinkedHashMap<String, ArrayList<Map.Entry<String, String>>> toRemove = new LinkedHashMap<>();
|
LinkedHashMap<String, ArrayList<Map.Entry<String, String>>> toRemove = new LinkedHashMap<>();
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ public class SoundManager {
|
|||||||
|
|
||||||
private void loadSounds() {
|
private void loadSounds() {
|
||||||
try (InputStream stream = LibsDisguises.getInstance().getResource("ANTI_PIRACY_SECRET_FILE")) {
|
try (InputStream stream = LibsDisguises.getInstance().getResource("ANTI_PIRACY_SECRET_FILE")) {
|
||||||
String[] lines = new String(ReflectionManager.readFully(stream), StandardCharsets.UTF_8).split("\n");
|
String[] lines = new String(ReflectionManager.readFuzzyFully(stream), StandardCharsets.UTF_8).split("\n");
|
||||||
|
|
||||||
for (String line : lines) {
|
for (String line : lines) {
|
||||||
String[] groups = line.split("/", -1);
|
String[] groups = line.split("/", -1);
|
||||||
|
@ -50,7 +50,7 @@ public class DisguiseMethods {
|
|||||||
|
|
||||||
private void loadMethods() {
|
private void loadMethods() {
|
||||||
try (InputStream stream = LibsDisguises.getInstance().getResource("ANTI_PIRACY_ENCRYPTION")) {
|
try (InputStream stream = LibsDisguises.getInstance().getResource("ANTI_PIRACY_ENCRYPTION")) {
|
||||||
String[] lines = new String(ReflectionManager.readFully(stream), StandardCharsets.UTF_8).split("\n");
|
String[] lines = new String(ReflectionManager.readFuzzyFully(stream), StandardCharsets.UTF_8).split("\n");
|
||||||
|
|
||||||
HashMap<String, Class<? extends FlagWatcher>> classes = new HashMap<>();
|
HashMap<String, Class<? extends FlagWatcher>> classes = new HashMap<>();
|
||||||
classes.put(FlagWatcher.class.getSimpleName(), FlagWatcher.class);
|
classes.put(FlagWatcher.class.getSimpleName(), FlagWatcher.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user