Merge pull request #538 from CocoTheOwner/noSystemOut

This commit is contained in:
Dan 2021-08-14 13:11:12 -04:00 committed by GitHub
commit a65a85fb67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -482,7 +482,7 @@ public class Iris extends VolmitPlugin implements Listener {
public static void msg(String string) { public static void msg(String string) {
try { try {
sender.sendMessage(string); sender.sendMessage(string);
} catch (Throwable ignored) { } catch (Throwable e) {
try { try {
System.out.println(string); System.out.println(string);
} catch (Throwable ignored1) { } catch (Throwable ignored1) {

View File

@ -265,7 +265,7 @@ public class Violator {
T f = c.getDeclaredAnnotation(a); T f = c.getDeclaredAnnotation(a);
p(id(f, c), f); p(id(f, c), f);
System.out.println("Set as " + id(f, c) + " as " + ("@" + a.getCanonicalName() + "[" + id(c, null) + "]")); Iris.debug("Set as " + id(f, c) + " as " + ("@" + a.getCanonicalName() + "[" + id(c, null) + "]"));
} }
return (T) g("@" + a.getCanonicalName() + "[" + id(c, null) + "]"); return (T) g("@" + a.getCanonicalName() + "[" + id(c, null) + "]");

View File

@ -65,7 +65,7 @@ public class J {
a.run(); a.run();
} catch (Throwable e) { } catch (Throwable e) {
Iris.reportError(e); Iris.reportError(e);
System.out.println("Failed to run async task"); Iris.error("Failed to run async task");
e.printStackTrace(); e.printStackTrace();
} }
}); });
@ -77,7 +77,7 @@ public class J {
a.run(); a.run();
} catch (Throwable e) { } catch (Throwable e) {
Iris.reportError(e); Iris.reportError(e);
System.out.println("Failed to run async task"); Iris.error("Failed to run async task");
e.printStackTrace(); e.printStackTrace();
} }
}); });