Skip to content

Commit 8d05e67

Browse files
committed
Add new dark vault screen packs, new option for disabling chat buttons, remove dark vault config
1 parent 2837551 commit 8d05e67

File tree

18 files changed

+97
-34
lines changed

18 files changed

+97
-34
lines changed

build.gradle

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id "architectury-plugin" version "3.4.+"
33
id "dev.architectury.loom" version "0.11.0.+" apply false
4-
id "com.modrinth.minotaur" version "1.2.+"
4+
id "com.modrinth.minotaur" version "1.2.+" apply false
55
id "io.github.juuxel.loom-quiltflower" version "1.+" apply false
66
}
77

@@ -13,6 +13,7 @@ subprojects {
1313
apply plugin: "dev.architectury.loom"
1414
apply from: rootProject.file("setupAuth.gradle")
1515
apply plugin: "io.github.juuxel.loom-quiltflower"
16+
apply plugin: "com.modrinth.minotaur"
1617

1718
repositories {
1819
maven {
@@ -55,22 +56,6 @@ allprojects {
5556

5657
jar { from "LICENSE" }
5758

58-
//noinspection UnnecessaryQualifiedReference
59-
task modrinth(type: com.modrinth.minotaur.TaskModrinthUpload) {
60-
final String loader = project.name
61-
onlyIf { System.getenv().MODRINTH_TOKEN }
62-
detectLoaders = false
63-
token = System.getenv().MODRINTH_TOKEN
64-
projectId = "QYTT62S0"
65-
versionNumber = mod_version + "+" + loader
66-
versionName = "${rootProject.release_title} (${loader.substring(0, 1).toUpperCase() + loader.substring(1)})"
67-
changelog = rootProject.changeLog
68-
uploadFile = project.file("build/libs/${rootProject.archivesBaseName}-${rootProject.version}.jar")
69-
versionType = "beta"
70-
addGameVersion(mc_version)
71-
addLoader(loader)
72-
}
73-
7459
publishing {
7560
repositories {
7661
maven {

common/src/main/java/dev/frydae/emcutils/features/ChatChannels.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class ChatChannels {
2828
private static final TextRenderer textRenderer = MinecraftClient.getInstance().textRenderer;
2929

3030
public static void handleChatScreenRender(Screen screen, MatrixStack matrices) {
31-
if (Util.isOnEMC) {
31+
if (Util.isOnEMC && Config.chatButtonsEnabled()) {
3232
for (ChatChannel channel : ChatChannel.values()) {
3333
if (channel == ChatChannel.SUPPORTER && Util.getPlayerGroupId() < 2) break;
3434
if (channel == ChatChannel.MODERATOR && Util.getPlayerGroupId() < 5) break;
@@ -40,7 +40,7 @@ public static void handleChatScreenRender(Screen screen, MatrixStack matrices) {
4040
}
4141

4242
public static void handleChatScreenMouseClicked(Screen screen, double mouseX, double mouseY) {
43-
if (Util.isOnEMC) {
43+
if (Util.isOnEMC && Config.chatButtonsEnabled()) {
4444
for (ChatChannel channel : ChatChannel.values()) {
4545
if (channel == ChatChannel.SUPPORTER && Util.getPlayerGroupId() < 2) break;
4646
if (channel == ChatChannel.MODERATOR && Util.getPlayerGroupId() < 5) break;

common/src/main/java/dev/frydae/emcutils/features/VaultScreen.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@
3737
@SuppressWarnings("SpellCheckingInspection")
3838
public class VaultScreen extends HandledScreen<VaultScreenHandler> implements ScreenHandlerProvider<VaultScreenHandler> {
3939
public static final RegistrySupplier<ScreenHandlerType<VaultScreenHandler>> GENERIC_9X7;
40-
private static final Identifier TEXTURE = new Identifier(MODID, Config.darkVaultScreen() ?
41-
"textures/gui/container/generic_63_dark.png" :
42-
"textures/gui/container/generic_63.png");
40+
private static final Identifier TEXTURE = new Identifier(MODID, "textures/gui/container/generic_63.png");
4341
private final int vaultPage;
4442
private final int[] slotOffsets = {8, 26, 44, 62, 80, 98, 116, 134, 152};
4543
private boolean shouldCallClose = true;

common/src/main/java/dev/frydae/emcutils/utils/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@SuppressWarnings("unused")
1111
public class Config {
1212
@ExpectPlatform
13-
public static boolean darkVaultScreen() {
13+
public static boolean chatButtonsEnabled() {
1414
throw new AssertionError("ExpectPlatform didn't apply!");
1515
}
1616

11.2 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pack": {
3+
"pack_format": 8,
4+
"description": "emcutils - Dark vault (Dark UI 32x style)"
5+
}
6+
}
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pack": {
3+
"pack_format": 8,
4+
"description": "emcutils - Dark vault (Vanilla Tweaks style)"
5+
}
6+
}

fabric/build.gradle

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
exclude group: "net.fabricmc"
3838
}
3939

40-
modRuntimeOnly "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}"
40+
modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_version}"
4141

4242
modApi("dev.architectury:architectury-fabric:${rootProject.architectury_version}") {
4343
exclude group: "net.fabricmc.fabric-api"
@@ -89,6 +89,20 @@ components.java {
8989
}
9090
}
9191

92+
//noinspection UnnecessaryQualifiedReference
93+
task modrinth(type: com.modrinth.minotaur.TaskModrinthUpload) {
94+
onlyIf { System.getenv().MODRINTH_TOKEN }
95+
token = System.getenv().MODRINTH_TOKEN
96+
projectId = "QYTT62S0"
97+
versionNumber = mod_version + "+fabric"
98+
versionName = rootProject.release_title + " (Fabric)"
99+
changelog = rootProject.changeLog
100+
uploadFile = remapJar
101+
versionType = "beta"
102+
addGameVersion(mc_version)
103+
addLoader("fabric")
104+
}
105+
92106
publishing {
93107
publications {
94108
mavenJavaFabric(MavenPublication) {

0 commit comments

Comments
 (0)