Skip to content

Commit

Permalink
Fix WTexts being fixed-size
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Apr 25, 2020
1 parent cf26e57 commit 0a0125e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/io/github/cottonmc/cotton/gui/widget/WText.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public void setSize(int x, int y) {
wrappingScheduled = true;
}

@Override
public boolean canResize() {
return true;
}

@Environment(EnvType.CLIENT)
private void wrapLines() {
TextRenderer font = MinecraftClient.getInstance().textRenderer;
Expand Down

0 comments on commit 0a0125e

Please sign in to comment.