aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-12-01 01:14:43 +0100
committernea <romangraef@gmail.com>2022-12-01 01:14:43 +0100
commitde8942fd0a323c1097872dbf89414620415cde15 (patch)
treeb96927dec565f615a890bc947e65bb062040295d /src/main
parentaec3ef4836160068e3b6a822a0abfa532650aa7d (diff)
downloadNotEnoughUpdates-nomoreswing.tar.gz
NotEnoughUpdates-nomoreswing.tar.bz2
NotEnoughUpdates-nomoreswing.zip
Do not ask the for an itemid when saving recipesnomoreswing
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
index 0fdaa652..e1fb8586 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java
@@ -59,7 +59,6 @@ import io.github.moulberry.notenoughupdates.overlays.TextOverlay;
import io.github.moulberry.notenoughupdates.profileviewer.GuiProfileViewer;
import io.github.moulberry.notenoughupdates.util.ItemUtils;
import io.github.moulberry.notenoughupdates.util.NotificationHandler;
-import io.github.moulberry.notenoughupdates.util.RequestFocusListener;
import io.github.moulberry.notenoughupdates.util.SBInfo;
import io.github.moulberry.notenoughupdates.util.Utils;
import net.minecraft.client.Minecraft;
@@ -93,7 +92,6 @@ import org.lwjgl.input.Keyboard;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
-import javax.swing.*;
import java.io.IOException;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
@@ -1392,23 +1390,6 @@ public class RenderListener {
if (lower.getStackInSlot(23) != null && lower.getStackInSlot(23).getDisplayName().endsWith("Crafting Table")) {
ItemStack res = lower.getStackInSlot(25);
String resInternalname = neu.manager.getInternalNameForItem(res);
- JTextField tf = new JTextField();
- tf.setText(resInternalname);
- tf.addAncestorListener(new RequestFocusListener());
- JOptionPane.showOptionDialog(
- null,
- tf,
- "Enter Name:",
- JOptionPane.NO_OPTION,
- JOptionPane.PLAIN_MESSAGE,
- null,
- new String[]{"Enter"},
- "Enter"
- );
- resInternalname = tf.getText();
- if (resInternalname.trim().length() == 0) {
- return;
- }
JsonObject recipe = new JsonObject();