Skip to content

Commit 285dcdd

Browse files
Add ViaBackwardsPlatform#init with config instance (#1149)
1 parent 1f5fd88 commit 285dcdd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

common/src/main/java/com/viaversion/viabackwards/api/ViaBackwardsPlatform.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,14 @@ public interface ViaBackwardsPlatform {
8080

8181
String MINIMUM_VV_VERSION = "5.6.0";
8282

83+
default void init(final File configFile) {
84+
init(new ViaBackwardsConfig(configFile, getLogger()));
85+
}
86+
8387
/**
8488
* Initialize ViaBackwards.
8589
*/
86-
default void init(final File configFile) {
87-
ViaBackwardsConfig config = new ViaBackwardsConfig(configFile, getLogger());
90+
default void init(final ViaBackwardsConfig config) {
8891
config.reload();
8992
Via.getManager().getConfigurationProvider().register(config);
9093

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
projectVersion=5.6.0
1+
projectVersion=5.6.1-SNAPSHOT
22

33
# Smile emoji (note that modrinth may not have added the version on release yet)
44
mcVersions=1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5, 1.21.4, 1.21.3, 1.21.2, 1.21.1, 1.21, 1.20.6, 1.20.5, 1.20.4, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.19, 1.18.2, 1.18.1, 1.18, 1.17.1, 1.17, 1.16.5, 1.16.4, 1.16.3, 1.16.2, 1.16.1, 1.16, 1.15.2, 1.15.1, 1.15, 1.14.4, 1.14.3, 1.14.2, 1.14.1, 1.14, 1.13.2, 1.13.1, 1.13, 1.12.2, 1.12.1, 1.12, 1.11.2, 1.11.1, 1.11, 1.10.2, 1.10.1, 1.10

0 commit comments

Comments
 (0)