forked from Upstream/mmocore
Fixed an issue with craftItemExpSource
This commit is contained in:
parent
d8517eb94e
commit
ab177461d4
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user