GregTechCEu / GregTech-Modern

GregTech CE Unofficial for modern versions
GNU Lesser General Public License v3.0
234 stars 128 forks source link

[1.21-Crash] Saving entity NBT data #1514

Open 3x1t-5tyl3 opened 2 days ago

3x1t-5tyl3 commented 2 days ago

Checked for existing issues

Tested latest version

GregTech CEu Version

1.21 branch

Recipe Viewer Installed

EMI

Environment

All

Cross-Mod Interaction

No

Other Installed Mods

Intellij

Expected Behavior

Not to crash and save the data properly

Actual Behavior

The game tries to save the NBT data of the item (in my case a drum with fluid) and crashes on trying to save: https://mclo.gs/G5vg2QC

Steps to Reproduce

  1. Place a drum
  2. Input a bucket of fluid (i used water, but it doesn't matter)
  3. Pickup drum with a wrench or pickaxe (not NBT copy in creative)
  4. Press esc to bring up the menu (and cause a save-event) -> crash

Additional Information

Likely caused by invalid NBT saving.