Fix minor bug with previous commit.
This commit is contained in:
@@ -134,7 +134,7 @@ public class CraftingManager implements ICraftingManager {
|
|||||||
public ICraftingTask schedule(ItemStack stack, int toSchedule) {
|
public ICraftingTask schedule(ItemStack stack, int toSchedule) {
|
||||||
for (ICraftingTask task : getTasks()) {
|
for (ICraftingTask task : getTasks()) {
|
||||||
for (ItemStack output : task.getPattern().getOutputs()) {
|
for (ItemStack output : task.getPattern().getOutputs()) {
|
||||||
if (API.instance().getComparer().isEqual(output, stack)) {
|
if (API.instance().getComparer().isEqualNoQuantity(output, stack)) {
|
||||||
toSchedule -= output.getCount() * task.getQuantity();
|
toSchedule -= output.getCount() * task.getQuantity();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -203,7 +203,7 @@ public class CraftingManager implements ICraftingManager {
|
|||||||
public ICraftingPattern getPattern(ItemStack pattern) {
|
public ICraftingPattern getPattern(ItemStack pattern) {
|
||||||
for (ICraftingPattern patternInList : patterns) {
|
for (ICraftingPattern patternInList : patterns) {
|
||||||
for (ItemStack output : patternInList.getOutputs()) {
|
for (ItemStack output : patternInList.getOutputs()) {
|
||||||
if (API.instance().getComparer().isEqual(output, pattern)) {
|
if (API.instance().getComparer().isEqualNoQuantity(output, pattern)) {
|
||||||
return patternInList;
|
return patternInList;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user