Skip to content

Commit

Permalink
Fix wrong numbers on float-conversion (#144)
Browse files Browse the repository at this point in the history
* Fix wrong numbers on float-conversion

* Adding import

* Triggering another build

* Adding another import

---------

Co-authored-by: Steven Van Ingelgem <[email protected]>
  • Loading branch information
svaningelgem and Steven Van Ingelgem authored Nov 28, 2024
1 parent 7f30f9c commit 25a050a
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion buildProj/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation(project(":implementation:v1_20_R4"))
implementation(project(":implementation:v1_21_R1"))
implementation(project(":implementation:v1_21_R2"))
implementation("com.github.AvarionMC:yaml:1.1.3")
implementation("com.github.AvarionMC:yaml:1.1.5")
}

tasks.shadowJar {
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dependencies {
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.18-R0.1-SNAPSHOT")
// compileOnly(group = "org.spigotmc", name = "spigot", version = "1.16.4-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}

// Set this to the lowest compat in implementation
Expand Down
4 changes: 4 additions & 0 deletions common/src/main/java/org/terraform/main/config/TConfig.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
package org.terraform.main.config;

import org.avarion.yaml.Leniency;
import org.avarion.yaml.YamlComment;
import org.avarion.yaml.YamlFile;
import org.avarion.yaml.YamlFileInterface;
import org.avarion.yaml.YamlKey;

import java.io.File;
import java.io.IOException;


@YamlFile(lenient = Leniency.LENIENT)
public class TConfig extends YamlFileInterface {
public static TConfig c;
public static void init(final File f) throws IOException {
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_18_R2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.18.2-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_19_R3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.19.4-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_20_R1/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.20.1-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_20_R2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.20.2-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_20_R3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.20.3-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_20_R4/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.20.5-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_21
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_21_R1/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.21.1-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_21
Expand Down
2 changes: 1 addition & 1 deletion implementation/v1_21_R2/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dependencies {
implementation(project(":common"))
compileOnly(group = "org.spigotmc", name = "spigot", version = "1.21.3-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:20.1.0")
compileOnly("com.github.AvarionMC:yaml:1.1.3")
compileOnly("com.github.AvarionMC:yaml:1.1.5")
}
java {
sourceCompatibility = JavaVersion.VERSION_21
Expand Down

0 comments on commit 25a050a

Please sign in to comment.