Fixed an issue with craftItemExpSource

This commit is contained in:
Jules 2022-03-27 21:15:43 +02:00
parent d8517eb94e
commit ab177461d4

View File

@ -90,7 +90,7 @@ public class CraftItemExperienceSource extends SpecificExperienceSource<Material
int lower = Integer.MAX_VALUE; int lower = Integer.MAX_VALUE;
int index = -1; int index = -1;
for (int i = 0; i < 9; i++) { for (int i = 0; i < matrix.length; i++) {
ItemStack checked = matrix[i]; ItemStack checked = matrix[i];
if (checked != null && checked.getType() != Material.AIR && checked.getAmount() > 0 && checked.getAmount() < lower) { if (checked != null && checked.getType() != Material.AIR && checked.getAmount() > 0 && checked.getAmount() < lower) {
lower = checked.getAmount(); lower = checked.getAmount();