Slimefun-Addon-Community / DynaTech

A slimefun addon that adds random things that I would like.
MIT License
2 stars 2 forks source link

Tesseract dupe items #17

Open ybw0014 opened 2 years ago

ybw0014 commented 2 years ago

Description (Required)

Using Tesseract to transfer items, it can stack items with same id and lore, but they are actually different items. This situation is similar to https://github.com/Slimefun/Slimefun4/issues/3379 but I've looked at the code, tesseract uses dough's utils to compare items, which doesn't compare pdcs so items can be stacked.

The tested items that are affected: Infinity Storage, Network Quantum Storage.

Steps to reproduce the Issue (Required)

  1. Setting up a pair of tesseract. 1 and 2.
  2. Get a barrel, and put items in it, we label it as Barrel A.
  3. Get a barrel, put nothing in it, we lavel it as Barrel B.
  4. Put Barrel A in Tesseract 1's output slot.
  5. Put Barrel B in Tesseract 2's input slot.
  6. The Barrel A's amount increases.

Expected behavior (Required)

Tesseract can distinguish items with same id and lore but different pdcs.

Server Log / Error Report

Environment (Required)