diff --git a/headlessmc-lwjgl/src/main/java/me/earth/headlessmc/lwjgl/redirections/LwjglRedirections.java b/headlessmc-lwjgl/src/main/java/me/earth/headlessmc/lwjgl/redirections/LwjglRedirections.java index bfea5b0e..b793e3a6 100644 --- a/headlessmc-lwjgl/src/main/java/me/earth/headlessmc/lwjgl/redirections/LwjglRedirections.java +++ b/headlessmc-lwjgl/src/main/java/me/earth/headlessmc/lwjgl/redirections/LwjglRedirections.java @@ -132,9 +132,9 @@ public static void register(RedirectionManager manager) { manager.redirect("Lorg/lwjgl/opengl/GL30;glCheckFramebufferStatus(I)I", of(36053)); - // blaze3d NativeImage - manager.redirect("Lorg/lwjgl/system/MemoryUtil;nmemAlloc(J)J", - of(1L)); + // blaze3d NativeImage checks that values are != 0 for this function + manager.redirect("Lorg/lwjgl/system/MemoryUtil;nmemAlloc(J)J", of(1L)); + manager.redirect("org/lwjgl/system/MemoryUtil;nmemCalloc(JJ)J", of(1L)); // TODO: because MemoryUtil and the Buffers are actually being used, // redirect all methods inside those to return proper Buffers?