Skip to content

Commit

Permalink
Remove Subscriptions Script
Browse files Browse the repository at this point in the history
  • Loading branch information
opZywl committed Nov 19, 2023
1 parent b54eaaa commit fd74dc3
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 792 deletions.
17 changes: 0 additions & 17 deletions src/main/java/net/ccbluex/liquidbounce/FDPClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import net.ccbluex.liquidbounce.ui.client.gui.EnumLaunchFilter
import net.ccbluex.liquidbounce.ui.client.gui.LaunchFilterInfo
import net.ccbluex.liquidbounce.ui.client.gui.LaunchOption
import net.ccbluex.liquidbounce.ui.client.gui.GuiLaunchOptionSelectMenu
import net.ccbluex.liquidbounce.ui.client.gui.scriptOnline.ScriptSubscribe
import net.ccbluex.liquidbounce.ui.client.gui.scriptOnline.Subscriptions
import net.ccbluex.liquidbounce.script.ScriptManager
import net.ccbluex.liquidbounce.ui.cape.GuiCapeManager
import net.ccbluex.liquidbounce.ui.client.hud.HUD
Expand Down Expand Up @@ -68,7 +66,6 @@ object FDPClient {
lateinit var moduleManager: ModuleManager
lateinit var commandManager: CommandManager
lateinit var eventManager: EventManager
private lateinit var subscriptions: Subscriptions
lateinit var fileManager: FileManager
lateinit var scriptManager: ScriptManager
lateinit var tipSoundManager: TipSoundManager
Expand Down Expand Up @@ -116,7 +113,6 @@ object FDPClient {
// Initialize managers
fileManager = FileManager()
configManager = ConfigManager()
subscriptions = Subscriptions()
eventManager = EventManager()
commandManager = CommandManager()
macroManager = MacroManager()
Expand Down Expand Up @@ -179,19 +175,6 @@ object FDPClient {
thread(block = this::checkUpdate)
}

// Load script subscripts
ClientUtils.logInfo("Loading Script Subscripts...")
fileManager.subscriptsConfig.subscripts.forEach { subscript ->
Subscriptions.addSubscribes(ScriptSubscribe(subscript.url, subscript.name))
}
scriptManager.disableScripts()
scriptManager.unloadScripts()
Subscriptions.subscribes.forEach { scriptSubscribe ->
scriptSubscribe.load()
}
scriptManager.loadScripts()
scriptManager.enableScripts()

// Set title
ClientUtils.setTitle()

Expand Down

This file was deleted.

5 changes: 0 additions & 5 deletions src/main/java/net/ccbluex/liquidbounce/script/Script.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import jdk.nashorn.api.scripting.ScriptUtils
import net.ccbluex.liquidbounce.FDPClient
import net.ccbluex.liquidbounce.features.command.Command
import net.ccbluex.liquidbounce.features.module.Module
import net.ccbluex.liquidbounce.ui.client.gui.scriptOnline.Subscriptions
import net.ccbluex.liquidbounce.script.api.*
import net.ccbluex.liquidbounce.script.api.global.Chat
import net.ccbluex.liquidbounce.script.api.global.Notifications
Expand Down Expand Up @@ -65,10 +64,6 @@ class Script(private val scriptFile: File) : MinecraftInstance() {

// Global functions
scriptEngine.put("registerScript", RegisterScript())
if (Subscriptions.loadingCloud) {
scriptText = Subscriptions.tempJs
isOnline = true
}
supportLegacyScripts()

scriptEngine.eval(scriptText)
Expand Down
177 changes: 0 additions & 177 deletions src/main/java/net/ccbluex/liquidbounce/ui/client/GuiImportConfig.java

This file was deleted.

Loading

0 comments on commit fd74dc3

Please sign in to comment.