This only covers combining different items together. Fuzzy filtering is still a bit too fuzzy for corner cases.
This commit is contained in:
@@ -29,6 +29,7 @@ import net.minecraft.nbt.CompoundNBT;
|
|||||||
import appeng.api.config.FuzzyMode;
|
import appeng.api.config.FuzzyMode;
|
||||||
|
|
||||||
final class AESharedItemStack implements Comparable<AESharedItemStack> {
|
final class AESharedItemStack implements Comparable<AESharedItemStack> {
|
||||||
|
|
||||||
private final ItemStack itemStack;
|
private final ItemStack itemStack;
|
||||||
private final int itemId;
|
private final int itemId;
|
||||||
private final int itemDamage;
|
private final int itemDamage;
|
||||||
@@ -97,7 +98,8 @@ final class AESharedItemStack implements Comparable<AESharedItemStack> {
|
|||||||
return damageValue;
|
return damageValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return System.identityHashCode(this.getDefinition().getTag())
|
||||||
|
- System.identityHashCode(b.getDefinition().getTag());
|
||||||
}
|
}
|
||||||
|
|
||||||
private int makeHashCode() {
|
private int makeHashCode() {
|
||||||
@@ -183,4 +185,5 @@ final class AESharedItemStack implements Comparable<AESharedItemStack> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user