Update to 1.17.1
This commit is contained in:
@@ -39,7 +39,7 @@ public class Util {
|
||||
}
|
||||
}
|
||||
|
||||
private static FloatBuffer floatBuffer = GlAllocationUtils.allocateFloatBuffer(16);
|
||||
private static FloatBuffer floatBuffer = GlAllocationUtils.allocateByteBuffer(16 * 4).asFloatBuffer();
|
||||
public static Matrix4f getGlMatrix(int matrix) {
|
||||
floatBuffer.clear();
|
||||
//#if MC>=11400
|
||||
|
||||
@@ -103,7 +103,12 @@ public class NoGuiScreenshot {
|
||||
// Read it, create the screenshot and finish the future
|
||||
try {
|
||||
//#if MC>=11400
|
||||
Image image = new Image(ScreenshotUtils.takeScreenshot(frameWidth, frameHeight, mc.getFramebuffer()));
|
||||
Image image = new Image(ScreenshotUtils.takeScreenshot(
|
||||
//#if MC<11701
|
||||
frameWidth, frameHeight,
|
||||
//#endif
|
||||
mc.getFramebuffer()
|
||||
));
|
||||
//#else
|
||||
//$$ // We're using Minecraft's ScreenShotHelper even though it writes the screenshot to
|
||||
//$$ // disk for better maintainability
|
||||
|
||||
Reference in New Issue
Block a user