Init'd GuiNpcTextField

This commit is contained in:
bigguy345 committed 2025-12-19 16:01:19 +02:00
1 parent 2556666072
commit 7a74a599f2
2 files changed
+8 -1

No files matched your search

@@ -104,6 +104,10 @@ public abstract class GuiNPCInterface extends GuiScreen {
rotateLeft = new GuiNpcButton(0, guiLeft + 44 + xOffsetNpc + xOffsetButton, guiTop + yOffsetNpc + yOffsetButton, 20, 20, "<");
rotateRight = new GuiNpcButton(0, guiLeft + 66 + xOffsetNpc + xOffsetButton, guiTop + yOffsetNpc + yOffsetButton, 20, 20, ">");
}
//Important for GuiScriptTextArea
for (GuiNpcTextField tf : textfields.values())
tf.initGui();
}
@Override
@@ -38,7 +38,10 @@ public class GuiNpcTextField extends GuiTextField {
public GuiNpcTextField(int id, GuiScreen parent, int i, int j, int k, int l, String s) {
this(id, parent, Minecraft.getMinecraft().fontRenderer, i, j, k, l, s);
}
public void initGui() {
}
protected boolean charAllowed(char c, int i) {
if (!integersOnly || Character.isDigit(c))
return true;