Update to 1.17.1

This commit is contained in:
Jonas Herzig
2021-07-24 11:05:39 +02:00
parent 927db36baa
commit 2415a886e2
6 changed files with 16 additions and 4 deletions

View File

@@ -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