mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Obfuscate password entry
This commit is contained in:
1 parent
3d4636d8da
commit
fdde129180
2 files changed
+12
No files matched your search
@@ -168,7 +168,11 @@ public class GuiPasswordEnter extends GuiScreen
|
||||
int guiHeight = (height - ySize) / 2;
|
||||
|
||||
drawTexturedModalRect(guiWidth, guiHeight, 0, 0, xSize, ySize);
|
||||
String actualPass = passwordField.getText();
|
||||
String censored = new String(new char[actualPass.length()]).replace("\0", "*");
|
||||
passwordField.setText(censored);
|
||||
passwordField.drawTextBox();
|
||||
passwordField.setText(actualPass);
|
||||
|
||||
super.drawScreen(mouseX, mouseY, partialTick);
|
||||
|
||||
|
||||
Reference in new issue
Block a user