File tree 2 files changed +14
-2
lines changed
src/main/kotlin/org/polyfrost/chatting/config 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
mod_name = Chatting
2
2
mod_id = chatting
3
- mod_version = 2.0.1
3
+ mod_version = 2.0.2
4
4
mod_archives_name = Chatting
5
5
6
6
# Gradle Configuration -- DO NOT TOUCH THESE VALUES.
Original file line number Diff line number Diff line change @@ -345,6 +345,7 @@ object ChattingConfig : Config(
345
345
var tooltipTextRenderType = 1
346
346
347
347
var isPatcherMigrated = false
348
+ var isPatcherMigratedPt2CauseImStupid = false
348
349
349
350
init {
350
351
initialize()
@@ -356,7 +357,7 @@ object ChattingConfig : Config(
356
357
if (OldPatcherConfig .transparentChatOnlyWhenClosed) {
357
358
chatWindow.setBackgroundColor(chatWindow.getBackgroundColor().also { it.alpha = 0 })
358
359
chatWindow.differentOpacity = true
359
- chatWindow.openOpacity = 255
360
+ chatWindow.openOpacity = 0
360
361
} else {
361
362
chatWindow.setBackground(false )
362
363
}
@@ -366,6 +367,17 @@ object ChattingConfig : Config(
366
367
}
367
368
isPatcherMigrated = true
368
369
370
+ save()
371
+ }
372
+ if (! isPatcherMigratedPt2CauseImStupid) {
373
+ if (OldPatcherConfig .transparentChat) {
374
+ if (OldPatcherConfig .transparentChatOnlyWhenClosed && chatWindow.openOpacity == 255 ) {
375
+ chatWindow.openOpacity = 0
376
+ }
377
+ }
378
+
379
+ isPatcherMigratedPt2CauseImStupid = true
380
+
369
381
save()
370
382
}
371
383
} catch (_: ClassNotFoundException ) {}
You can’t perform that action at this time.
0 commit comments