From 2bb51035c2aaf1b7b83e38e9bb2fd7bd3bf4c04a Mon Sep 17 00:00:00 2001 From: PeytonPlayz595 <106421860+PeytonPlayz595@users.noreply.github.com> Date: Mon, 8 Jul 2024 09:27:32 -0700 Subject: [PATCH] snapshot 24w28a --- .../net/lax1dude/eaglercraft/v1_8/EaglercraftVersion.java | 2 +- .../net/lax1dude/eaglercraft/v1_8/opengl/WorldRenderer.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/lax1dude/eaglercraft/v1_8/EaglercraftVersion.java b/src/main/java/net/lax1dude/eaglercraft/v1_8/EaglercraftVersion.java index f5dc3b6..b7ad969 100644 --- a/src/main/java/net/lax1dude/eaglercraft/v1_8/EaglercraftVersion.java +++ b/src/main/java/net/lax1dude/eaglercraft/v1_8/EaglercraftVersion.java @@ -16,7 +16,7 @@ public class EaglercraftVersion { //Client name (Shadow) public static final String projectForkName = new String(new byte[] {83, 104, 97, 100, 111, 119 }); //Build version (number + snapshot/official) - public static final String projectForkVersion = new String(new byte[] {52, 46, 53, 32, 115, 110, 97, 112, 115, 104, 111, 116, 45, 50, 52, 119, 50, 55, 97 }); + public static final String projectForkVersion = new String(new byte[] {52, 46, 53, 32, 115, 110, 97, 112, 115, 104, 111, 116, 45, 50, 52, 119, 50, 56, 97 }); //Author name (PeytonPlayz585) public static final String projectForkVendor = new String(new byte[] {80, 101, 121, 116, 111, 110, 80, 108, 97, 121, 122, 53, 56, 53 }); diff --git a/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/WorldRenderer.java b/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/WorldRenderer.java index 3fa895f..eedbd5c 100644 --- a/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/WorldRenderer.java +++ b/src/main/java/net/lax1dude/eaglercraft/v1_8/opengl/WorldRenderer.java @@ -202,8 +202,9 @@ public class WorldRenderer { * SLOW AND STUPID COMPANION FUNCTION TO 'func_181672_a' */ public void setVertexState(WorldRenderer.State state) { - this.grow(state.getRawBuffer().length); - PlatformBufferFunctions.put(this.intBuffer, 0, state.getRawBuffer()); + int[] rawBuffer = state.getRawBuffer(); + this.grow(rawBuffer.length); + PlatformBufferFunctions.put(this.intBuffer, 0, rawBuffer); this.vertexCount = state.getVertexCount(); this.vertexFormat = state.getVertexFormat(); }