Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit ab24b66

Browse files
committed
Update gradle
1 parent 2ea96b8 commit ab24b66

File tree

4 files changed

+4
-62
lines changed

4 files changed

+4
-62
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

+2-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ case "`uname`" in
7272
Darwin* )
7373
darwin=true
7474
;;
75-
MSYS* | MINGW* )
75+
MINGW* )
7676
msys=true
7777
;;
7878
NONSTOP* )
@@ -93,14 +93,12 @@ if [ -n "$JAVA_HOME" ] ; then
9393
fi
9494
if [ ! -x "$JAVACMD" ] ; then
9595
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96-
9796
Please set the JAVA_HOME variable in your environment to match the
9897
location of your Java installation."
9998
fi
10099
else
101100
JAVACMD="java"
102101
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103-
104102
Please set the JAVA_HOME variable in your environment to match the
105103
location of your Java installation."
106104
fi
@@ -182,4 +180,4 @@ APP_ARGS=`save "$@"`
182180
# Collect all arguments for the java command, following the shell quoting and substitution rules
183181
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184182

185-
exec "$JAVACMD" "$@"
183+
exec "$JAVACMD" "$@"

gradlew.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ exit /b 1
8686
:mainEnd
8787
if "%OS%"=="Windows_NT" endlocal
8888

89-
:omega
89+
:omega

src/main/java/io/github/darkkronicle/advancedchatcore/config/ConfigStorage.java

-56
Original file line numberDiff line numberDiff line change
@@ -275,62 +275,6 @@ public void save() {
275275
}
276276

277277

278-
public enum HudLineType implements IConfigOptionListEntry {
279-
FULL("full"),
280-
COMPACT("compact")
281-
;
282-
283-
public final String configString;
284-
285-
private static String translate(String key) {
286-
return StringUtils.translate("advancedchat.config.hudlinetype." + key);
287-
}
288-
289-
HudLineType(String configString) {
290-
this.configString = configString ;
291-
}
292-
293-
@Override
294-
public String getStringValue() {
295-
return configString;
296-
}
297-
298-
@Override
299-
public String getDisplayName() {
300-
return translate(configString);
301-
}
302-
303-
@Override
304-
public IConfigOptionListEntry cycle(boolean forward) {
305-
int id = this.ordinal();
306-
if (forward) {
307-
id++;
308-
} else {
309-
id--;
310-
}
311-
if (id >= values().length) {
312-
id = 0;
313-
} else if (id < 0) {
314-
id = values().length - 1;
315-
}
316-
return values()[id % values().length];
317-
}
318-
319-
@Override
320-
public IConfigOptionListEntry fromString(String value) {
321-
return fromHudLineTypeString(value);
322-
}
323-
324-
public static HudLineType fromHudLineTypeString(String hudlinetype) {
325-
for (HudLineType h : HudLineType.values()) {
326-
if (h.configString.equals(hudlinetype)) {
327-
return h;
328-
}
329-
}
330-
return HudLineType.FULL;
331-
}
332-
}
333-
334278
public enum Easing implements IConfigOptionListEntry, EasingMethod {
335279
LINEAR("linear", Method.LINEAR),
336280
SINE("sine", Method.SINE),

0 commit comments

Comments
 (0)