add fluid pattern blame (#161)

This commit is contained in:
Glease authored and GitHub committed 2023-10-07 10:59:40 +08:00
1 parent cc6959eb03
commit 25ab0916a7
2 files changed
+14 -2

No files matched your search

@@ -28,7 +28,13 @@ public class FluidPatternDetails implements ICraftingPatternDetails, Comparable<
public FluidPatternDetails(ItemStack stack) {
this.patternStack = stack;
this.patternStackAe = Objects.requireNonNull(AEItemStack.create(stack)); // s2g
if (stack.stackTagCompound.hasKey("author")) {
final ItemStack forComparison = this.patternStack.copy();
forComparison.stackTagCompound.removeTag("author");
this.patternStackAe = Objects.requireNonNull(AEItemStack.create(forComparison)); // s2g
} else {
this.patternStackAe = Objects.requireNonNull(AEItemStack.create(stack)); // s2g
}
}
public boolean canBeSubstitute() {