Fix builder inconsistently respecting OreDict
BptBuilderBlueprint.checkRequirements expects an exact match, but BptBuilderBlueprint.useRequirements will accept ore-dictionary (and other?) equivalent items.
This commit is contained in:
parent
420d3f50bf
commit
a1867f528e
|
@ -611,7 +611,7 @@ public class BptBuilderBlueprint extends BptBuilderBase {
|
|||
FluidStack fluidStack = fluid != null ? FluidContainerRegistry.getFluidForFilledItem(invStk) : null;
|
||||
boolean fluidFound = fluidStack != null && fluidStack.getFluid() == fluid && fluidStack.amount >= FluidContainerRegistry.BUCKET_VOLUME;
|
||||
|
||||
if (fluidFound || StackHelper.isCraftingEquivalent(reqStk, invStk, true)) {
|
||||
if (fluidFound || StackHelper.isMatchingItem(reqStk, invStk, true, true)) {
|
||||
try {
|
||||
usedStack = slot.getSchematic().useItem(context, reqStk, slotInv);
|
||||
slot.addStackConsumed (usedStack);
|
||||
|
|
Loading…
Reference in a new issue