Skip to content

Commit 55272cf

Browse files
committed
Merge remote-tracking branch 'origin/master-1.21-lts' into master-1.21
2 parents c277543 + a332586 commit 55272cf

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.19.0 or higher.
3+
4+
Fixes:
5+
* Fix some modded keybindings activating in scripting terminal, Closes #40
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.19.0 or higher.
3+
4+
Fixes:
5+
* Fix some modded keybindings activating in scripting terminal, Closes #40
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
As always, don't forget to backup your world before updating!
2+
Requires CyclopsCore version 1.25.5 or higher.
3+
4+
Fixes:
5+
* Fix some modded keybindings activating in scripting terminal, Closes #40

src/main/java/org/cyclops/integratedscripting/client/gui/component/input/WidgetTextArea.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import net.minecraft.client.StringSplitter;
99
import net.minecraft.client.gui.Font;
1010
import net.minecraft.client.gui.GuiGraphics;
11-
import net.minecraft.client.gui.components.AbstractWidget;
11+
import net.minecraft.client.gui.components.EditBox;
1212
import net.minecraft.client.gui.components.events.GuiEventListener;
1313
import net.minecraft.client.gui.font.TextFieldHelper;
1414
import net.minecraft.client.gui.narration.NarratedElementType;
@@ -53,7 +53,7 @@
5353
* @author rubensworks
5454
*/
5555
@OnlyIn(Dist.CLIENT)
56-
public class WidgetTextArea extends AbstractWidget implements GuiEventListener {
56+
public class WidgetTextArea extends EditBox implements GuiEventListener {
5757

5858
public static final int ROW_HEIGHT = 9;
5959

@@ -82,7 +82,7 @@ public class WidgetTextArea extends AbstractWidget implements GuiEventListener {
8282
private int firstRow;
8383

8484
public WidgetTextArea(Font font, int x, int y, int width, int height, Component narrationMessage, boolean scrollBar, boolean showLineNumbers) {
85-
super(x, y, width, height, narrationMessage);
85+
super(font, x, y, width, height, narrationMessage);
8686
this.font = font;
8787
this.showLineNumbers = showLineNumbers;
8888
this.textFieldHelper = new TextFieldHelperExtended(this::getValue, this::setValuePassive, this::getClipboard, this::setClipboard, s -> true, this::setSelected, this::onCursorPosChanged);
@@ -204,7 +204,7 @@ public void setSelectionPos(int pos) {
204204
}
205205

206206
@Override
207-
protected void updateWidgetNarration(NarrationElementOutput narrationElementOutput) {
207+
public void updateWidgetNarration(NarrationElementOutput narrationElementOutput) {
208208
narrationElementOutput.add(NarratedElementType.TITLE, Component.translatable("narration.edit_box", this.getValue()));
209209
}
210210

@@ -432,7 +432,7 @@ private void keyEnd() {
432432
}
433433

434434
@Override
435-
protected void renderWidget(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) {
435+
public void renderWidget(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks) {
436436
// Determine lines to show
437437
DisplayCache displayCache = this.getDisplayCache();
438438
List<LineInfo> lines = Arrays.asList(displayCache.lines);

0 commit comments

Comments
 (0)