Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 54392bd

Browse files
committed
correct getLast call
1 parent af1ae84 commit 54392bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1.20/src/main/java/io/github/axolotlclient/util/options/vanilla/AxoGraphicsWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void init() {
6161

6262
int buttonX = gridX + maxGridWidth + 10;
6363
int buttonY = gridY + 60;
64-
var back = (ButtonWidget) children().getLast();
64+
var back = (ButtonWidget) children().get(children().size()-1);
6565
remove(back);
6666
addDrawableChild(ButtonWidget.builder(Text.translatable("graphics.copy_text"),
6767
btn -> client.keyboard.setClipboard(Base64.getEncoder().encodeToString(graphics.getPixelData())))

0 commit comments

Comments
 (0)