Skip to content

Commit

Permalink
patch: fixes
Browse files Browse the repository at this point in the history
* fixed blossom setup
* fixed TranslationManager.kt
* removed unused import
  • Loading branch information
Im-Fran committed Jan 15, 2024
1 parent 70525d1 commit 4ff1a32
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
11 changes: 0 additions & 11 deletions build-info/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@ plugins {
id("net.kyori.blossom") version "2.1.0" // Placeholder injection
}

kotlin {
sourceSets {
main {
kotlin.srcDir("src/main/kotlin-templates")
resources.srcDir("src/main/resources-templates")

kotlin.exclude("build/**")
}
}
}

sourceSets {
main {
blossom {
Expand Down
1 change: 0 additions & 1 deletion simplecoreapi/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel

dependencies {
/* Api */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TranslationManager {
lateinit var instance: TranslationManager
private set

fun getCurrentLanguage(): String = translationSettings.getStringOrSet("language", "en")
fun getCurrentLanguage(): String = translationSettings.getStringOrAdd("language", "en")
}

init {
Expand Down

0 comments on commit 4ff1a32

Please sign in to comment.