Skip to content

Commit

Permalink
24w40a
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Oct 2, 2024
1 parent 0e6d0a5 commit b7a13e5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
plugins {
id("java")
id("fabric-loom") version ("1.7.3") apply (false)
id("fabric-loom") version ("1.8.2") apply (false)
}

val MINECRAFT_VERSION by extra { "24w38a" }
val MINECRAFT_VERSION by extra { "24w40a" }
val NEOFORGE_VERSION by extra { "21.0.163" }
val FABRIC_LOADER_VERSION by extra { "0.16.5" }
val FABRIC_API_VERSION by extra { "0.104.2+1.21.2" }
val FABRIC_API_VERSION by extra { "0.105.0+1.21.2" }

// This value can be set to null to disable Parchment.
val PARCHMENT_VERSION by extra { null }
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("java")
id("idea")
id("fabric-loom") version ("1.7.3")
id("fabric-loom") version ("1.8.2")
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.caffeinemc.mods.sodium.mixin.features.render.gui.font;

import com.mojang.blaze3d.vertex.VertexConsumer;
import net.caffeinemc.mods.sodium.api.util.ColorARGB;
import net.caffeinemc.mods.sodium.client.render.vertex.VertexConsumerUtils;
import net.caffeinemc.mods.sodium.api.vertex.format.common.GlyphVertex;
import net.minecraft.client.gui.font.glyphs.BakedGlyph;
Expand Down Expand Up @@ -52,7 +53,7 @@ public class BakedGlyphMixin {
* @author JellySquid
*/
@Inject(method = "render", at = @At("HEAD"), cancellable = true)
private void drawFast(boolean italic, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, float red, float green, float blue, float alpha, int light, CallbackInfo ci) {
private void drawFast(boolean italic, float x, float y, Matrix4f matrix, VertexConsumer vertexConsumer, int c, int light, CallbackInfo ci) {
var writer = VertexConsumerUtils.convertOrLog(vertexConsumer);

if (writer == null) {
Expand All @@ -68,7 +69,7 @@ private void drawFast(boolean italic, float x, float y, Matrix4f matrix, VertexC
float w1 = italic ? 1.0F - 0.25F * this.up : 0.0F;
float w2 = italic ? 1.0F - 0.25F * this.down : 0.0F;

int color = ColorABGR.pack(red, green, blue, alpha);
int color = ColorARGB.toABGR(c);

try (MemoryStack stack = MemoryStack.stackPush()) {
long buffer = stack.nmalloc(4 * GlyphVertex.STRIDE);
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("java")
id("idea")
id("fabric-loom") version ("1.7.3")
id("fabric-loom") version ("1.8.2")
}

val MINECRAFT_VERSION: String by rootProject.extra
Expand Down
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.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit b7a13e5

Please sign in to comment.