Skip to content

Commit 7be9f9c

Browse files
committed
bump axolotlclient dependency
- cleanup build scripts - fix tiny bug
1 parent 052a486 commit 7be9f9c

File tree

13 files changed

+56
-23
lines changed

13 files changed

+56
-23
lines changed

.editorconfig

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ max_line_length = 120
1212
[*.json]
1313
indent_size = 2
1414

15-
[quilt.mod.json]
16-
tab_width = 2
17-
1815
[*.properties]
1916
indent_size = 2
17+
18+
[.github/**/*.yml]
19+
indent_style = space
20+
indent_size = 2

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ jobs:
3333
- name: Build
3434
run: ./gradlew build collectBuilds
3535

36+
- name: Generate Version Changelog
37+
run: ./gradlew generateVersionChangelog
38+
3639
- name: Release
3740
uses: Kira-NT/mc-publish@v3.3
3841
with:
39-
github-token: "${{ secrets.GH_TOKEN }}"
40-
changelog-file: "CHANGELOG.md"
42+
github-token: "${{ secrets.GITHUB_TOKEN }}"
43+
changelog-file: "build/changelog"
4144
files: builds/*.jar

1.20/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ java {
8686

8787
tasks.runClient {
8888
classpath(sourceSets.getByName("test").runtimeClasspath)
89-
jvmArgs("-XX:+AllowEnhancedClassRedefinition")
89+
jvmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
9090
}
9191

9292
// Configure the maven publication
@@ -132,7 +132,7 @@ modrinth {
132132
additionalFiles.set(listOf(tasks.remapSourcesJar))
133133
dependencies {
134134
required.project("fabric-api")
135-
optional.project("axolotlclient")
135+
optional.version("axolotlclient", project.property("axolotlclient").toString())
136136
}
137137

138138
// Changelog fetching: Credit LambdAurora.

1.20/src/main/java/io/github/axolotlclient/waypoints/waypoints/WaypointRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private void renderWaypoint(Waypoint waypoint, GuiGraphics graphics, float tick,
180180
pose.pushPose();
181181
pose.translate(0, Math.max(height, projHeight + 4) / 2f + 4, 0);
182182
var pos = pose.last().pose().transformPosition(new Vector3f());
183-
if (_3dOnScreen) {
183+
if ((projWidth >= width || projHeight >= height) && _3dOnScreen) {
184184
pos.y = Math.min(pos.y, displayEnd.y()+6);
185185
}
186186
positionDrawn.set(() -> {

1.21.8/build.gradle.kts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ loom {
2323
sourceSet("test")
2424
}
2525
}
26-
runs {
27-
getByName("client").vmArg("-XX:+AllowEnhancedClassRedefinition")
28-
}
2926
}
3027

3128
repositories {
@@ -92,11 +89,11 @@ java {
9289

9390
tasks.runClient {
9491
classpath(sourceSets.getByName("test").runtimeClasspath)
95-
jvmArgs("-XX:+AllowEnhancedClassRedefinition")
92+
jvmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
9693
}
9794

9895
tasks.runServer {
99-
jvmArgs("-XX:+AllowEnhancedClassRedefinition")
96+
jvmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
10097
}
10198

10299
// Configure the maven publication
@@ -142,7 +139,7 @@ modrinth {
142139
additionalFiles.set(listOf(tasks.remapSourcesJar))
143140
dependencies {
144141
required.project("fabric-api")
145-
optional.project("axolotlclient")
142+
optional.version("axolotlclient", project.property("axolotlclient").toString())
146143
}
147144

148145
// Changelog fetching: Credit LambdAurora.

1.21.8/src/main/java/io/github/axolotlclient/waypoints/waypoints/WaypointRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ private void renderWaypoint(Waypoint waypoint, GuiGraphics graphics, DeltaTracke
205205
pose.pushMatrix();
206206
pose.translate(0, Math.max(height, projHeight + 4) / 2f + 4);
207207
var pos = pose.transformPosition(new Vector2f());
208-
if (_3dOnScreen) {
208+
if ((projWidth >= width || projHeight >= height) && _3dOnScreen) {
209209
pos.y = Math.min(pos.y, displayEnd.y()+6);
210210
}
211211
positionDrawn.set(() -> {

1.21/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ java {
8686

8787
tasks.runClient {
8888
classpath(sourceSets.getByName("test").runtimeClasspath)
89-
jvmArgs("-XX:+AllowEnhancedClassRedefinition")
89+
jvmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
9090
}
9191

9292
// Configure the maven publication
@@ -132,7 +132,7 @@ modrinth {
132132
additionalFiles.set(listOf(tasks.remapSourcesJar))
133133
dependencies {
134134
required.project("fabric-api")
135-
optional.project("axolotlclient")
135+
optional.version("axolotlclient", project.property("axolotlclient").toString())
136136
}
137137

138138
// Changelog fetching: Credit LambdAurora.

1.21/src/main/java/io/github/axolotlclient/waypoints/waypoints/WaypointRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private void renderWaypoint(Waypoint waypoint, GuiGraphics graphics, DeltaTracke
186186
pose.pushPose();
187187
pose.translate(0, Math.max(height, projHeight + 4) / 2f + 4, 0);
188188
var pos = pose.last().pose().transformPosition(new Vector3f());
189-
if (_3dOnScreen) {
189+
if ((projWidth >= width || projHeight >= height) && _3dOnScreen) {
190190
pos.y = Math.min(pos.y, displayEnd.y()+6);
191191
}
192192
positionDrawn.set(() -> {

1.8.9/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ tasks.runClient {
9494
jvmArgs("-Dorg.lwjgl.glfw.libname=$glfwPath")
9595
}
9696
classpath(sourceSets.getByName("test").runtimeClasspath)
97-
jvmArgs("-XX:+AllowEnhancedClassRedefinition")
97+
jvmArgs("-XX:+AllowEnhancedClassRedefinition -XX:+IgnoreUnrecognizedVMOptions")
9898
}
9999

100100
tasks.withType(JavaCompile::class).configureEach {
@@ -156,7 +156,7 @@ modrinth {
156156
dependencies {
157157
required.project("osl")
158158
required.project("moehreag-legacy-lwjgl3")
159-
optional.project("axolotlclient")
159+
optional.version("axolotlclient", project.property("axolotlclient").toString())
160160
}
161161

162162
// Changelog fetching: Credit LambdAurora.

1.8.9/src/main/java/io/github/axolotlclient/waypoints/waypoints/WaypointRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ private void renderWaypoint(Waypoint waypoint, float tick, Entity camera, Atomic
209209
GlStateManager.pushMatrix();
210210
GlStateManager.translatef(result.x(), result.y(), 0);
211211
GlStateManager.translatef(0, Math.max(height, projHeight + 4) / 2f + 4, 0);
212-
if (_3dOnScreen) {
212+
if ((projWidth >= width || projHeight >= height) && _3dOnScreen) {
213213
float y = result.y()+Math.max(height, projHeight + 4) / 2f + 4;
214214
var y2 = Math.min(y, displayEnd.y()+6);
215215
GlStateManager.translatef(0, y2-y, 0);

0 commit comments

Comments
 (0)