From fcba9205548b5c67b4a1a03dd1976445994a7477 Mon Sep 17 00:00:00 2001 From: Ocelot Date: Sun, 19 Jan 2025 12:49:27 -0700 Subject: [PATCH] Update VeilShaderBufferLayout.java --- .../foundry/veil/api/client/render/VeilShaderBufferLayout.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/foundry/veil/api/client/render/VeilShaderBufferLayout.java b/common/src/main/java/foundry/veil/api/client/render/VeilShaderBufferLayout.java index 50145773..f1ad011f 100644 --- a/common/src/main/java/foundry/veil/api/client/render/VeilShaderBufferLayout.java +++ b/common/src/main/java/foundry/veil/api/client/render/VeilShaderBufferLayout.java @@ -9,6 +9,7 @@ import org.jetbrains.annotations.Nullable; import org.joml.*; +import java.lang.Math; import java.nio.ByteBuffer; import java.util.Random; import java.util.*; @@ -106,7 +107,7 @@ public static class Builder { private ShaderBlock.MemoryLayout memoryLayout; public Builder() { - this.name = "VeilBuffer" + RANDOM.nextLong(); + this.name = "VeilBuffer" + Math.abs(RANDOM.nextInt()); this.structFields = new ArrayList<>(); this.fields = new Object2ObjectArrayMap<>(); this.binding = ShaderBlock.BufferBinding.UNIFORM;