diff options
author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-12-01 10:37:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 10:37:27 +0100 |
commit | 4fba0ccfcac5235cef6e9f2b8e1526b4de332337 (patch) | |
tree | b96927dec565f615a890bc947e65bb062040295d /src/main/java/io | |
parent | aec3ef4836160068e3b6a822a0abfa532650aa7d (diff) | |
download | NotEnoughUpdates-4fba0ccfcac5235cef6e9f2b8e1526b4de332337.tar.gz NotEnoughUpdates-4fba0ccfcac5235cef6e9f2b8e1526b4de332337.tar.bz2 NotEnoughUpdates-4fba0ccfcac5235cef6e9f2b8e1526b4de332337.zip |
Do not ask the for an itemid when saving recipes (#470)
Diffstat (limited to 'src/main/java/io')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/listener/RenderListener.java | 19 |
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(); |