Fixed potential crash

This commit is contained in:
Anuken
2026-08-29 18:15:48 -04:00
parent adbb931d93
commit 2fa2fc9bf1
+1
View File
@@ -124,6 +124,7 @@ public class ItemSeq implements Iterable<ItemStack>, JsonSerializable{
}
public void add(Item item, int amount){
if(item.id >= values.length) return; //content patches can change ID length
values[item.id] += amount;
total += amount;
}