aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-06-11 19:15:16 +0800
committershedaniel <daniel@shedaniel.me>2020-06-11 19:15:16 +0800
commit4755b58cc468d8711f21c42fb2f51357da5ca851 (patch)
tree32437a186542a6b0db9e9876cfaace080e8e0d68 /src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java
parent14802dfe0c02bd5b9c442672de62f4f113524954 (diff)
downloadRoughlyEnoughItems-4755b58cc468d8711f21c42fb2f51357da5ca851.tar.gz
RoughlyEnoughItems-4755b58cc468d8711f21c42fb2f51357da5ca851.tar.bz2
RoughlyEnoughItems-4755b58cc468d8711f21c42fb2f51357da5ca851.zip
Rewritten Config Screen
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java')
-rw-r--r--src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java b/src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java
index 3d9b98081..fe6007d1b 100644
--- a/src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java
+++ b/src/main/java/me/shedaniel/rei/gui/RecipeDisplayExporter.java
@@ -23,7 +23,6 @@
package me.shedaniel.rei.gui;
-import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.systems.RenderSystem;
import me.shedaniel.math.Rectangle;
import me.shedaniel.rei.gui.toast.ExportRecipeIdentifierToast;
@@ -36,7 +35,7 @@ import net.minecraft.client.resource.language.I18n;
import net.minecraft.client.texture.NativeImage;
import net.minecraft.client.util.Window;
import net.minecraft.client.util.math.MatrixStack;
-import net.minecraft.resource.ResourceImpl;
+import net.minecraft.util.Util;
import org.jetbrains.annotations.ApiStatus;
import java.io.File;
@@ -105,7 +104,7 @@ public final class RecipeDisplayExporter extends Widget {
strippedImage.setPixelRgba(x, y, nativeImage.getPixelRgba(x + (int) (rectangle.x * window.getScaleFactor()), y + (int) (rectangle.y * window.getScaleFactor())));
}
}
- ResourceImpl.RESOURCE_IO_EXECUTOR.execute(() -> {
+ Util.method_27958().execute(() -> {
try {
File export = new File(minecraft.runDirectory, "rei_exports");
export.mkdirs();