Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit 9424d56

Browse files
authored
Values Crash Fix (#158)
values crash fix
2 parents a0d26cd + 214a814 commit 9424d56

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/io/github/codeutilities/mod/mixin/render/MGenericContainerScreen.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ private void argCheck(Action a, MatrixStack matrices) {
7171
return;
7272
}
7373

74+
// values menu would crash here.
75+
if (items.size() != 27) {
76+
return;
77+
}
78+
7479
for (int i = 0; i < ditem.getTags(); i++) {
7580
items.set(26 - i, new ItemStack(Items.AIR));
7681
}

0 commit comments

Comments
 (0)