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
18 changes: 11 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
plugins {
id 'fabric-loom' version '0.11-SNAPSHOT'
id 'fabric-loom' version '1.2-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

Expand All @@ -30,6 +26,10 @@ dependencies {
compileOnly 'com.google.code.findbugs:jsr305:+'
}

base {
archivesName = project.archives_base_name
}

processResources {
inputs.property "version", project.version

Expand All @@ -40,6 +40,9 @@ processResources {
// from(sourceSets.main.resources.srcDirs) {
// exclude "fabric.mod.json"
// }

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

// ensure that the encoding is set to UTF-8, no matter what the system default is
Expand All @@ -53,12 +56,13 @@ tasks.withType(JavaCompile) {
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}

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

// configure the maven publication
Expand Down
9 changes: 4 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.19.3
yarn_mappings=1.19.3+build.5
loader_version=0.14.13

minecraft_version=1.19.4
yarn_mappings=1.19.4+build.2
loader_version=0.14.19

# Mod Properties
mod_version = 1.2.6
Expand All @@ -17,5 +16,5 @@ org.gradle.jvmargs=-Xmx1G

# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.73.0+1.19.3
fabric_version=0.79.0+1.19.4
modmenu_version=5.0.2
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
25 changes: 18 additions & 7 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/main/java/net/entityoutliner/ui/ColorWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float del
RenderSystem.defaultBlendFunc();
RenderSystem.blendFunc(GlStateManager.SrcFactor.SRC_ALPHA, GlStateManager.DstFactor.ONE_MINUS_SRC_ALPHA);
drawTexture(matrices, this.getX(), this.getY(), this.isFocused() ? 20.0F : 0.0F, this.color.ordinal() * 20, 20, 20, 40, 180);
this.renderBackground(matrices, minecraftClient, mouseX, mouseY);
}

public enum Color {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/entityoutliner/ui/EntityListWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static EntityListWidget.HeaderEntry create(SpawnGroup category, TextRende
}

public void render(MatrixStack matrices, int i, int j, int k, int l, int m, int n, int o, boolean bl, float f) {
DrawableHelper.drawCenteredText(matrices, this.font, this.title, this.width / 2, j + (this.height / 2) - (this.font.fontHeight / 2), 16777215);
this.font.draw(matrices, this.title, (float) (this.width / 2 - this.font.getWidth(this.title) / 2), (float) (j + (this.height / 2) - (this.font.fontHeight / 2)), 16777215);
}

public List<? extends Element> children() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/entityoutliner/ui/EntitySelector.java
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public void render(MatrixStack matrices, int mouseX, int mouseY, float delta) {

// Render our search bar
this.setFocused(this.searchField);
this.searchField.setTextFieldFocused(true);
this.searchField.setFocused(true);
this.searchField.render(matrices, mouseX, mouseY, delta);

// Render buttons
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
],

"depends": {
"fabricloader": ">=0.7.4",
"fabricloader": ">=0.14.19",
"fabric": "*",
"fabric-lifecycle-events-v1": "*",
"fabric-key-binding-api-v1": "*",
Expand Down