Skip to content

Commit 909d37b

Browse files
committed
Invert IPlatformFatal->shouldDisplay
1 parent 7963f41 commit 909d37b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/avoid_loader/fabric/pl/olafcio/avoid_platform/PlatformFatalImpl.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public String[] getLaunchArguments(boolean sanitize) {
121121
public boolean displayCrash(Throwable exception, String context) {
122122
var platformFatal = PreModLoader.getInstance().loadService(IPlatformFatal.class);
123123
var event = new IPlatformFatal.CrashEvent() {
124-
private boolean _value = gameProvider.displayCrash(exception, context);
124+
private boolean _value = !gameProvider.displayCrash(exception, context);
125125

126126
@Override
127127
public boolean shouldDisplay() {
@@ -138,7 +138,7 @@ public void shouldDisplay(boolean value) {
138138
service.acknowledge(event);
139139
}
140140

141-
return event.shouldDisplay();
141+
return !event.shouldDisplay();
142142
}
143143

144144
@Override

0 commit comments

Comments
 (0)