invert suppressed error reporting for dev enviroments

This commit is contained in:
Julian Krings 2025-06-16 16:59:24 +02:00
parent 840608a40f
commit da2dd42e28
No known key found for this signature in database
GPG Key ID: 208C6E08C3B718D2
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ nmsBindings.forEach { key, value ->
systemProperty("disable.watchdog", "")
systemProperty("net.kyori.ansi.colorLevel", color)
systemProperty("com.mojang.eula.agree", true)
systemProperty("iris.errorReporting", errorReporting)
systemProperty("iris.suppressReporting", !errorReporting)
}
}

View File

@ -956,7 +956,7 @@ public class Iris extends VolmitPlugin implements Listener {
private static void setupSentry() {
var settings = IrisSettings.get().getSentry();
if (settings.disableAutoReporting || Sentry.isEnabled() || !Boolean.getBoolean("iris.errorReporting")) return;
if (settings.disableAutoReporting || Sentry.isEnabled() || Boolean.getBoolean("iris.suppressReporting")) return;
Iris.info("Enabling Sentry for anonymous error reporting. You can disable this in the settings.");
Iris.info("Your server ID is: " + ServerID.ID);
Sentry.init(options -> {