Skip to content

Commit 11172e3

Browse files
committed
Fixed boolean values in config
1 parent 2f655ea commit 11172e3

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repositories {
2121
}
2222

2323
base {
24-
archivesName = mod_id
24+
archivesName = mod_id + "-neoforge"
2525
}
2626

2727
// Mojang ships Java 21 to end users in 1.21.11, so mods should target Java 21.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod_name=Projectile Trajectory Preview
2828
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
2929
mod_license=MIT
3030
# The mod version. See https://semver.org/
31-
mod_version=1.0.25
31+
mod_version=1.0.26
3232
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
3333
# This should match the base package used for the mod sources.
3434
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

src/main/java/fr/madu59/ptp/config/SettingsManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@ else if (defaultValue instanceof Enum<?> e){
297297
else if (defaultValue instanceof Float){
298298
return (T) Float.valueOf(loadedSettings.get(key));
299299
}
300+
else if (defaultValue instanceof Boolean){
301+
return (T) (Boolean) Boolean.parseBoolean(loadedSettings.get(key));
302+
}
300303
else return null;
301304
}
302305

0 commit comments

Comments
 (0)