File tree Expand file tree Collapse file tree 4 files changed +2
-84
lines changed
src/main/kotlin/xyz/bluspring/unitytranslate Expand file tree Collapse file tree 4 files changed +2
-84
lines changed Original file line number Diff line number Diff line change @@ -256,21 +256,5 @@ class UnityTranslateClient {
256256 }
257257
258258 private val queuedForJoin = ConcurrentLinkedQueue <Consumer <Minecraft >>()
259-
260- fun openDownloadRequest () {
261- queuedForJoin.add { mc ->
262- if (mc.screen is OpenBrowserScreen ) {
263- mc.execute {
264- mc.setScreen(RequestDownloadScreen ().apply {
265- parent = mc.screen
266- })
267- }
268- } else {
269- mc.execute {
270- mc.setScreen(RequestDownloadScreen ())
271- }
272- }
273- }
274- }
275259 }
276260}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import xyz.bluspring.unitytranslate.Language
1515import xyz.bluspring.unitytranslate.UnityTranslate
1616import xyz.bluspring.unitytranslate.client.UnityTranslateClient
1717import xyz.bluspring.unitytranslate.client.gui.OpenBrowserScreen
18- import xyz.bluspring.unitytranslate.client.gui.RequestDownloadScreen
1918import xyz.bluspring.unitytranslate.client.transcribers.SpeechTranscriber
2019import xyz.bluspring.unitytranslate.client.transcribers.TranscriberType
2120import xyz.bluspring.unitytranslate.config.UnityTranslateConfig
@@ -49,11 +48,7 @@ class BrowserSpeechTranscriber(language: Language) : SpeechTranscriber(language)
4948 Util .getPlatform().openUri(" http://127.0.0.1:$serverPort " )
5049 } else if (UnityTranslate .config.client.openBrowserWithoutPromptV2 == UnityTranslateConfig .TriState .DEFAULT ) {
5150 Minecraft .getInstance().execute {
52- if (mc.screen is RequestDownloadScreen ) {
53- (mc.screen as RequestDownloadScreen ).parent = OpenBrowserScreen (" http://127.0.0.1:$serverPort " )
54- } else {
55- mc.setScreen(OpenBrowserScreen (" http://127.0.0.1:$serverPort " ))
56- }
51+ mc.setScreen(OpenBrowserScreen (" http://127.0.0.1:$serverPort " ))
5752 }
5853 }
5954 }
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import net.minecraft.world.entity.player.Player
1313import xyz.bluspring.modernnetworking.api.minecraft.VanillaPacketSender
1414import xyz.bluspring.unitytranslate.Language
1515import xyz.bluspring.unitytranslate.UnityTranslate
16- import xyz.bluspring.unitytranslate.client.UnityTranslateClient
1716import xyz.bluspring.unitytranslate.compat.voicechat.UTVoiceChatCompat
1817import xyz.bluspring.unitytranslate.library.util.collect
1918import xyz.bluspring.unitytranslate.library.util.concurrent
@@ -211,11 +210,7 @@ object TranslatorManager {
211210 return
212211
213212 if (UnityTranslate .config.server.shouldRunTranslationServer) {
214- if (UnityTranslate .instance.proxy.isClient() && ! UnityTranslateLibInstance .isLibraryLoaded) {
215- UnityTranslateClient .openDownloadRequest()
216- } else {
217- installLibreTranslate()
218- }
213+ installLibreTranslate()
219214 }
220215 }
221216
You can’t perform that action at this time.
0 commit comments