GregTechCEu / GregTech-Modern

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

GTM 1.4 strips NBT data from outputted items #1829

Closed trulyno closed 1 month ago

trulyno commented 2 months ago

Checked for existing issues

Tested latest version

GregTech CEu Version

1.4

Minecraft Version

1.20.1

Recipe Viewer Installed

EMI

Environment

Singleplayer

Cross-Mod Interaction

Yes

Other Installed Mods

Star technology 1.20.1 test build(non-public, same mods as 1.19.2 version), Monifactory 0.8.0/0.8.1

Expected Behavior

.itemOutputs(Item.of('kubejs:lv_upgrade_kit', '{AugmentData:{BaseMod:4.0f,Type:"Upgrade"}}')) should give the item with the NBT data attached.

Actual Behavior

The item is ouputed with no NBT data attached

Steps to Reproduce

  1. Add a custom recipe via KubeJS that results in an item with NBT data via Item.of(id, data)
  2. Load game and attempt recipe

Additional Information

The default NBT data of the item is being kept(ex. default Thermal Series augment) instead of it being overwritten.

screret commented 2 months ago

fucking hell, these bots.