Skip to content

Commit eab9540

Browse files
committed
Fix bug that makes mastermind.s unplayable
This is a regression not present in v1.5. It seems to have been introduced by 43dd8a7. Specifically double buffering System.out seems to hold things up. Simply flushing constantly seems to fix it.
1 parent 5868f71 commit eab9540

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rars/util/SystemIO.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public static void printString(String string) {
142142
if (Globals.getGui() == null) {
143143
try {
144144
SystemIO.getOutputWriter().write(string);
145+
SystemIO.getOutputWriter().flush();
145146
} catch (IOException e){
146147
}
147148
} else {

0 commit comments

Comments
 (0)