mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 15:57:55 +00:00
add fluid pattern blame (#161)
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user