9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 19:39:22 +00:00

fix import

This commit is contained in:
violetc
2022-03-09 09:19:31 +00:00
parent 61cfcf5c8e
commit 083458dc3c
9 changed files with 71 additions and 165 deletions

View File

@@ -40,19 +40,10 @@ index ed3d78494735ceda14ad0ea23adeadc374f3b35e..d0e9fd987687d6a0642a9e312668697f
if (bl4) {
boolean bl6;
diff --git a/src/main/java/top/leavesmc/leaves/LeavesConfig.java b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
index 3a7a390f06577720f713e98eb78cc1b6e59548d3..2f8969d20a17ee307f9881da5211b00292ecbb15 100644
index 47a17f5086a2dc4eb9a72ef9a8ab51e09b273e21..db6cac634120fee0ffc5dbc5c8f06b40aa294ad3 100644
--- a/src/main/java/top/leavesmc/leaves/LeavesConfig.java
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
@@ -56,7 +56,7 @@ public final class LeavesConfig {
for (final Method method : LeavesConfig.class.getDeclaredMethods()) {
if (method.getReturnType() != void.class || method.getParameterCount() != 0 ||
- !Modifier.isPrivate(method.getModifiers()) || !Modifier.isStatic(method.getModifiers())) {
+ !Modifier.isPrivate(method.getModifiers()) || !Modifier.isStatic(method.getModifiers())) {
continue;
}
@@ -81,6 +81,11 @@ public final class LeavesConfig {
@@ -83,6 +83,11 @@ public final class LeavesConfig {
LeavesConfig.config.set(path, value);
}
@@ -64,7 +55,7 @@ index 3a7a390f06577720f713e98eb78cc1b6e59548d3..2f8969d20a17ee307f9881da5211b002
static boolean getBoolean(final String path, final boolean dfl) {
LeavesConfig.config.addDefault(path, Boolean.valueOf(dfl));
return LeavesConfig.config.getBoolean(path, dfl);
@@ -139,7 +144,7 @@ public final class LeavesConfig {
@@ -141,7 +146,7 @@ public final class LeavesConfig {
public void load() {
for (final Method method : LeavesConfig.WorldConfig.class.getDeclaredMethods()) {
if (method.getReturnType() != void.class || method.getParameterCount() != 0 ||
@@ -73,10 +64,3 @@ index 3a7a390f06577720f713e98eb78cc1b6e59548d3..2f8969d20a17ee307f9881da5211b002
continue;
}
@@ -280,4 +285,4 @@ public final class LeavesConfig {
return config == null ? this.worldDefaults.getList(path, dfl) : config.getList(path, this.worldDefaults.getList(path, dfl));
}
}
-}
\ No newline at end of file
+}