-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e1d611
commit 23c9761
Showing
13 changed files
with
69 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "Applied Energistics 2" | ||
filename = "appliedenergistics2-fabric-15.2.0.jar" | ||
filename = "appliedenergistics2-fabric-15.2.9.jar" | ||
side = "both" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/XxWD5pD3/versions/qpG9cRjY/appliedenergistics2-fabric-15.2.0.jar" | ||
url = "https://cdn.modrinth.com/data/XxWD5pD3/versions/fatWoH9r/appliedenergistics2-fabric-15.2.9.jar" | ||
hash-format = "sha1" | ||
hash = "ef1619d2a602350e6133c8471d4f2e28834d5ba3" | ||
hash = "de1bb69a97c688ba738586278c0e25c03ad8e399" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "XxWD5pD3" | ||
version = "qpG9cRjY" | ||
version = "fatWoH9r" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "Bounced" | ||
filename = "bounced-4.1.0-fabric1.20.jar" | ||
filename = "bounced-4.1.1-fabric1.20.jar" | ||
side = "client" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/2mlOZXZr/versions/MCUZT7iQ/bounced-4.1.0-fabric1.20.jar" | ||
url = "https://cdn.modrinth.com/data/2mlOZXZr/versions/eeS0bDZR/bounced-4.1.1-fabric1.20.jar" | ||
hash-format = "sha1" | ||
hash = "6618559fc878597213566aec1b500aa8bd83c3e5" | ||
hash = "0bc3dd3a2a24707d8af50ff1f8f4440a0704d941" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "2mlOZXZr" | ||
version = "MCUZT7iQ" | ||
version = "eeS0bDZR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "Edgeless Chat Screen" | ||
filename = "edgelesschatscreen-1.1.2-fabric1.20.jar" | ||
filename = "edgelesschatscreen-1.1.3-fabric1.20.jar" | ||
side = "client" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/lS8sHS85/versions/A4nSGhM5/edgelesschatscreen-1.1.2-fabric1.20.jar" | ||
url = "https://cdn.modrinth.com/data/lS8sHS85/versions/qRZe4EYK/edgelesschatscreen-1.1.3-fabric1.20.jar" | ||
hash-format = "sha1" | ||
hash = "c226ad7db52a52ac0ab048342de22029711d06b0" | ||
hash = "7891d245fb68b6058a1c089cb42136975e9c7142" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "lS8sHS85" | ||
version = "A4nSGhM5" | ||
version = "qRZe4EYK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "Faded Widgets" | ||
filename = "fadedwidgets-2.1.0-fabric1.20.jar" | ||
filename = "fadedwidgets-2.1.1-fabric1.20.jar" | ||
side = "client" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/uV6OSNDy/versions/MnV09kij/fadedwidgets-2.1.0-fabric1.20.jar" | ||
url = "https://cdn.modrinth.com/data/uV6OSNDy/versions/gI5EUEgD/fadedwidgets-2.1.1-fabric1.20.jar" | ||
hash-format = "sha1" | ||
hash = "55882df2e1b9dcf457db3b4e0ed35cc74f5becb8" | ||
hash = "2a67e616a70f490edb536decde5aa105f87bbd1f" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "uV6OSNDy" | ||
version = "MnV09kij" | ||
version = "gI5EUEgD" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "Indium" | ||
filename = "indium-1.0.32+mc1.20.1.jar" | ||
filename = "indium-1.0.34+mc1.20.1.jar" | ||
side = "client" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/Orvt0mRa/versions/XPsoVC5n/indium-1.0.32%2Bmc1.20.1.jar" | ||
url = "https://cdn.modrinth.com/data/Orvt0mRa/versions/gofbpynL/indium-1.0.34%2Bmc1.20.1.jar" | ||
hash-format = "sha1" | ||
hash = "6689db86e97a6e112c36d276070fb537a1f3596e" | ||
hash = "a2de9ba15f155b09626995ad58b0e23803b05fe6" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "Orvt0mRa" | ||
version = "XPsoVC5n" | ||
version = "gofbpynL" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "I've Spoken" | ||
filename = "ivespoken-2.1.0-fabric1.20.jar" | ||
filename = "ivespoken-2.2.0-fabric1.20.jar" | ||
side = "both" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/OidSa416/versions/N1k1TgUo/ivespoken-2.1.0-fabric1.20.jar" | ||
url = "https://cdn.modrinth.com/data/OidSa416/versions/vNVnAgca/ivespoken-2.2.0-fabric1.20.jar" | ||
hash-format = "sha1" | ||
hash = "ae39ea51190b5b95b522c6c18e5ae3581effa24c" | ||
hash = "95a4657b63f79a4206362e3078141e9df53c7ca6" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "OidSa416" | ||
version = "N1k1TgUo" | ||
version = "vNVnAgca" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "Sodium" | ||
filename = "sodium-fabric-0.5.10+mc1.20.1.jar" | ||
filename = "sodium-fabric-0.5.11+mc1.20.1.jar" | ||
side = "client" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/AANobbMI/versions/dEpHs0Hg/sodium-fabric-0.5.10%2Bmc1.20.1.jar" | ||
url = "https://cdn.modrinth.com/data/AANobbMI/versions/ygf8cVZg/sodium-fabric-0.5.11%2Bmc1.20.1.jar" | ||
hash-format = "sha1" | ||
hash = "0a47b4930e2340173e00470f8f9da51374aa765d" | ||
hash = "c4293c1483f3b39c1c6c4c69143e8bb2c6e53daf" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "AANobbMI" | ||
version = "dEpHs0Hg" | ||
version = "ygf8cVZg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name = "Splasher!" | ||
filename = "splasher-6.1.0-fabric1.20.jar" | ||
filename = "splasher-6.2.0-fabric1.20.jar" | ||
side = "client" | ||
|
||
[download] | ||
url = "https://cdn.modrinth.com/data/4yIZUuyx/versions/uL5uQolp/splasher-6.1.0-fabric1.20.jar" | ||
url = "https://cdn.modrinth.com/data/4yIZUuyx/versions/gtoNK8dP/splasher-6.2.0-fabric1.20.jar" | ||
hash-format = "sha1" | ||
hash = "d4af99a54b8b64b3cc8e0510bfc57816e6d6f34c" | ||
hash = "b1eef0ec9983ff1155b54b2b5a6e1990f73fe9fb" | ||
|
||
[update] | ||
[update.modrinth] | ||
mod-id = "4yIZUuyx" | ||
version = "uL5uQolp" | ||
version = "gtoNK8dP" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 22 additions & 25 deletions
47
src/main/java/dm/earth/cabricality/config/CabfConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,53 @@ | ||
package dm.earth.cabricality.config; | ||
|
||
import net.fabricmc.loader.api.FabricLoader; | ||
import net.krlite.pierced.annotation.Silent; | ||
import net.krlite.pierced.annotation.Table; | ||
import net.krlite.pierced.config.Pierced; | ||
import dm.earth.cabricality.Cabricality; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.autoconfig.annotation.ConfigEntry; | ||
|
||
import java.io.File; | ||
|
||
public class CabfConfig extends Pierced { | ||
private static @Silent final File FILE = FabricLoader.getInstance().getConfigDir().resolve("cabricality.toml").toFile(); | ||
private static @Silent final CabfConfig INSTANCE = new CabfConfig(); | ||
|
||
private CabfConfig() { | ||
super(CabfConfig.class, FILE); | ||
load(); | ||
} | ||
@Config(name = Cabricality.ID) | ||
public class CabfConfig implements ConfigData { | ||
|
||
public static void override() { | ||
INSTANCE.save(); | ||
AutoConfig.getConfigHolder(CabfConfig.class).save(); | ||
} | ||
|
||
private boolean includeVersionInWindowTitle = false; | ||
|
||
public static boolean includeVersionInWindowTitle() { | ||
return INSTANCE.includeVersionInWindowTitle; | ||
return CabfConfig.getConfig().includeVersionInWindowTitle; | ||
} | ||
|
||
public static void includeVersionInWindowTitle(boolean includeVersionInGameTitle) { | ||
INSTANCE.includeVersionInWindowTitle = includeVersionInGameTitle; | ||
INSTANCE.save(); | ||
CabfConfig.getConfig().includeVersionInWindowTitle = includeVersionInGameTitle; | ||
CabfConfig.override(); | ||
} | ||
|
||
public static CabfConfig getConfig() { | ||
return AutoConfig.getConfigHolder(CabfConfig.class).getConfig(); | ||
} | ||
|
||
private boolean fadeScreenBackground = true; | ||
|
||
public static boolean fadeScreenBackground() { | ||
return INSTANCE.fadeScreenBackground; | ||
return CabfConfig.getConfig().fadeScreenBackground; | ||
} | ||
|
||
public static void fadeScreenBackground(boolean fadeScreenBackground) { | ||
INSTANCE.fadeScreenBackground = fadeScreenBackground; | ||
INSTANCE.save(); | ||
CabfConfig.getConfig().fadeScreenBackground = fadeScreenBackground; | ||
CabfConfig.override(); | ||
} | ||
|
||
@Table("debug") | ||
@ConfigEntry.Category("debug") | ||
private boolean debugInfo = false; | ||
|
||
public static boolean debugInfo() { | ||
return INSTANCE.debugInfo; | ||
return CabfConfig.getConfig().debugInfo; | ||
} | ||
|
||
public static void debugInfo(boolean debugInfo) { | ||
INSTANCE.debugInfo = debugInfo; | ||
INSTANCE.save(); | ||
CabfConfig.getConfig().debugInfo = debugInfo; | ||
CabfConfig.override(); | ||
} | ||
} |