aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-15 23:18:13 +0900
committersyeyoung <cyong06@naver.com>2021-01-15 23:18:13 +0900
commit2f31ee747d693ed444334c84b4e2b112ef142531 (patch)
tree6d45305ca7547710081bf866970d6a320358d4b0 /src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements
parent58040f039287bcbfcfb6a5bd06172820f0fa16cf (diff)
downloadSkyblock-Dungeons-Guide-2f31ee747d693ed444334c84b4e2b112ef142531.tar.gz
Skyblock-Dungeons-Guide-2f31ee747d693ed444334c84b4e2b112ef142531.tar.bz2
Skyblock-Dungeons-Guide-2f31ee747d693ed444334c84b4e2b112ef142531.zip
facking glstatemanager
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java
index 39808808..49c36d3c 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MTextField.java
@@ -64,6 +64,7 @@ public class MTextField extends MPanel {
// draw cursor
if (cursor != -1) {
+ if (cursor > text.length()) cursor = text.length();
int x = fr.getStringWidth(text.substring(0, cursor)) - xOffset;
cursorBlickTicker++;
if (cursorBlickTicker < 10)