Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SPRAVEDLIVO committed Mar 24, 2021
1 parent 6691667 commit bfba7c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/rat/poison/RatPoison.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data class sWeapon(var tSkinID: Int, var tStatTrak: Int, var tWear: Float, var t
const val TITLE = "RatPoison"
const val BRANCH = "Beta"
const val F_VERSION = "1.8"
const val M_VERSION = "1.8.5.3"
const val M_VERSION = "1.8.5.4"
var LOADED_CONFIG = "DEFAULT"
var oWeaponSize = oWeapon::class.java.declaredFields.size

Expand Down
4 changes: 3 additions & 1 deletion src/main/kotlin/rat/poison/ui/tabs/ConfigsTab.kt
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ class ConfigsTab : Tab(false, false) {
val tmpSelection = cloudConfigListAdapter.selection
if (tmpSelection.size > 0) {
val cfgName = tmpSelection[0]
val text = safeUrlRead("https://ratpoison.dimden.dev/", cfgName)
val text = safeUrlRead("https://ratpoison.dimden.dev/api/configs/", cfgName)
if (text == "") return@changed true
saveCFG(cfgName, text)
}
true
}

displayCloudConfigs.changed { _, _ -> shouldRefresh = displayCloudConfigs.isChecked; updateCloudConfigsList() }
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/rat/poison/utils/URL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fun safeUrlRead(vararg fromParts: String): String {
var tmpUrl = ""
var ret = ""
fromParts.forEachIndexed { index, s ->
tmpUrl += if (index > 1) {
tmpUrl += if (index > 0) {
encodeUrl(s)
} else {
s
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.8.5.3
1.8.5.4
beta

0 comments on commit bfba7c3

Please sign in to comment.