mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-17 22:45:00 +00:00
code cleanup
This commit is contained in:
22 files changed
+86
-108
No files matched your search
@@ -46,11 +46,8 @@ public class LibraryConfig {
|
||||
public static ValidationLogging CONFIG_ERROR_LOUDNESS;
|
||||
|
||||
public enum ValidationLogging {
|
||||
@StableAPI.Expose(since = "__INTERNAL__")
|
||||
None,
|
||||
@StableAPI.Expose(since = "__INTERNAL__")
|
||||
Log,
|
||||
@StableAPI.Expose(since = "__INTERNAL__")
|
||||
LogAndToast
|
||||
@StableAPI.Expose(since = "__INTERNAL__") None,
|
||||
@StableAPI.Expose(since = "__INTERNAL__") Log,
|
||||
@StableAPI.Expose(since = "__INTERNAL__") LogAndToast
|
||||
}
|
||||
}
|
||||
@@ -55,9 +55,7 @@ public class ToastConfig {
|
||||
}
|
||||
|
||||
public enum Side {
|
||||
@StableAPI.Expose(since = "__INTERNAL__")
|
||||
Left,
|
||||
@StableAPI.Expose(since = "__INTERNAL__")
|
||||
Right
|
||||
@StableAPI.Expose(since = "__INTERNAL__") Left,
|
||||
@StableAPI.Expose(since = "__INTERNAL__") Right
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -197,7 +197,8 @@ public class ConfigurationManagerImpl {
|
||||
val opt = serializedNames.keySet().stream().filter((key) -> key.equals(serializedName)).findFirst();
|
||||
if (!opt.isPresent()) {
|
||||
input.skipBytes(dataSize);
|
||||
FalsePatternLib.getLog().warn("Server tried to sync config not registered on our side: " + serializedName);
|
||||
FalsePatternLib.getLog()
|
||||
.warn("Server tried to sync config not registered on our side: " + serializedName);
|
||||
continue;
|
||||
}
|
||||
val clazz = serializedNames.get(opt.get());
|
||||
|
||||
@@ -22,6 +22,7 @@ package com.falsepattern.lib.internal.impl.config;
|
||||
|
||||
import com.falsepattern.lib.config.Config;
|
||||
import com.falsepattern.lib.config.ConfigException;
|
||||
import com.falsepattern.lib.internal.ReflectionUtil;
|
||||
import com.falsepattern.lib.internal.impl.config.fields.AConfigField;
|
||||
import com.falsepattern.lib.internal.impl.config.fields.BooleanConfigField;
|
||||
import com.falsepattern.lib.internal.impl.config.fields.BooleanListConfigField;
|
||||
@@ -33,7 +34,6 @@ import com.falsepattern.lib.internal.impl.config.fields.IntConfigField;
|
||||
import com.falsepattern.lib.internal.impl.config.fields.IntListConfigField;
|
||||
import com.falsepattern.lib.internal.impl.config.fields.StringConfigField;
|
||||
import com.falsepattern.lib.internal.impl.config.fields.StringListConfigField;
|
||||
import com.falsepattern.lib.internal.ReflectionUtil;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.val;
|
||||
|
||||
+1
-1
@@ -154,7 +154,7 @@ public class DependencyLoaderImpl {
|
||||
|
||||
public static CompletableFuture<Void> loadLibrariesAsync(Library... libraries) {
|
||||
val futures = new ArrayList<CompletableFuture<Void>>();
|
||||
for (val library: libraries) {
|
||||
for (val library : libraries) {
|
||||
val task = new DependencyLoadTask(library.loadingModId, library.groupId, library.artifactId,
|
||||
library.minVersion, library.maxVersion, library.preferredVersion,
|
||||
library.regularSuffix, library.devSuffix);
|
||||
|
||||
@@ -15,7 +15,6 @@ import lombok.val;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.event.ClickEvent;
|
||||
import net.minecraft.util.IChatComponent;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
||||
import java.net.MalformedURLException;
|
||||
@@ -85,7 +84,9 @@ public final class UpdateCheckerImpl {
|
||||
.groupId("com.falsepattern")
|
||||
.artifactId("json")
|
||||
.minVersion(new SemanticVersion(0, 4, 0))
|
||||
.maxVersion(new SemanticVersion(0, Integer.MAX_VALUE, Integer.MAX_VALUE))
|
||||
.maxVersion(new SemanticVersion(0,
|
||||
Integer.MAX_VALUE,
|
||||
Integer.MAX_VALUE))
|
||||
.preferredVersion(new SemanticVersion(0, 4, 1))
|
||||
.build());
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in new issue
Block a user