Files
Eaglercraft-1.8/patches/minecraft/net/minecraft/client/gui/GuiTextField.edit.java
2022-12-25 01:12:28 -08:00

48 lines
984 B
Java

# Eagler Context Redacted Diff
# Copyright (c) 2022 lax1dude. All rights reserved.
# Version: 1.0
# Author: lax1dude
> CHANGE 4 : 7 @ 4 : 9
~
~ import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
~ import net.lax1dude.eaglercraft.v1_8.opengl.WorldRenderer;
> DELETE 8 @ 10 : 11
> CHANGE 19 : 20 @ 22 : 23
~ protected String text = "";
> INSERT 64 : 76 @ 67
+ public void updateText(String parString1) {
+ if (this.field_175209_y.apply(parString1)) {
+ if (parString1.length() > this.maxStringLength) {
+ this.text = parString1.substring(0, this.maxStringLength);
+ } else {
+ this.text = parString1;
+ }
+
+ this.setCursorPosition(cursorPosition);
+ }
+ }
+
> CHANGE 429 : 432 @ 420 : 421
~ GlStateManager.color(0.2F, 0.2F, 1.0F, 1.0F);
~ GlStateManager.enableBlend();
~ GlStateManager.blendFunc(775, 770);
> DELETE 433 @ 422 : 424
> CHANGE 439 : 440 @ 430 : 431
~ GlStateManager.disableBlend();
> EOF