Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'fabric-loom' version '1.4-SNAPSHOT'
id 'fabric-loom' version '1.7-SNAPSHOT'
id 'maven-publish'
}

Expand Down Expand Up @@ -56,8 +56,8 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
// Minecraft 1.21 (24w14a) upwards uses Java 21.
it.options.release = 21
}

java {
Expand All @@ -66,20 +66,21 @@ java {
// If you remove this line, sources will not be generated.
withSourcesJar()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}

jar {
from("LICENSE") {
rename { "${it}_${archivesBaseName}"}
rename { "${it}_${base.archivesName}"}
}
}

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'carrotconfig'
from components.java
}
}
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ org.gradle.parallel = true

# Fabric properties
# check these on https://fabricmc.net/versions.html
minecraft_version = 1.20.4
yarn_mappings = 1.20.4+build.3
loader_version = 0.15.3
minecraft_version = 1.21
yarn_mappings = 1.21+build.9
loader_version = 0.15.11

# Mod properties
mod_version = 1.1.2
maven_group = retr0.carrotconfig
mod_version = 1.1.3
maven_group = com.github.2Retr0
archives_base_name = carrotconfig

# Dependencies
fabric_version = 0.92.0+1.20.4
fabric_version = 0.100.6+1.21
# https://modrinth.com/mod/modmenu/versions#all-versions
mod_menu_version = 9.0.0
mod_menu_version = 11.0.1
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ else if (defaultValue instanceof HashMap<?, ?> defaultMap)

@Override
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
renderBackgroundTexture(context);
renderDarkening(context);
super.render(context, mouseX, mouseY, delta);

context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 10, 0xFFFFFF);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public boolean mouseClicked(double mouseX, double mouseY, int button) {
}


@Override public int getScrollbarPositionX() { return width - 7; }
@Override public int getScrollbarX() { return width - 7; }

@Override public int getRowWidth() { return 10000; }
}