Skip to content

Commit 6a95b09

Browse files
authored
Fix crash when building an uneven grid with Grid::row(IWidget...) (#147)
1 parent f87ce6a commit 6a95b09

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/cleanroommc/modularui/widgets/layout

1 file changed

+1
-1
lines changed

src/main/java/com/cleanroommc/modularui/widgets/layout/Grid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public Grid row(List<IWidget> row) {
176176

177177
public Grid row(@NotNull IWidget... row) {
178178
Objects.requireNonNull(row);
179-
return row(Arrays.asList(row));
179+
return row(new ArrayList<>(Arrays.asList(row)));
180180
}
181181

182182
@Override

0 commit comments

Comments
 (0)