absolutelyaya / ultracraft

A Minecraft mod recreating the game Ultrakill
MIT License
23 stars 4 forks source link

Items randomly gain NBT data and lose the ability to stack #150

Open mothman-2 opened 1 month ago

mothman-2 commented 1 month ago

Stackable items will sometimes be unable to stack with other items of the same type. A closer look revealed this to be some of the items gaining nbt tags, though i wasn't able to see what those tags were. Could possibly be an issue caused by fabric or it's api (these were the only other mods in use). It happens seemingly at random, but I'll keep an eye out for any patterns and let you know if I notice anything.

TheGrahamReaper commented 1 month ago

Actually, I have found a distinct pattern for this occurring. Items only gain the junk NBT tag when you either switch off from that item to a shotgun/slab revolver, OR when you switch off from the shotgun/slab revolver to an item, all in your hotbar. So if I have the shotgun in hotbar slot 1 and a stack of beef in hotbar slot 2, scrolling from the beef in slot 2 to my shotgun in slot 1 will cause the beef to gain junk nbt data, and so will switching the shotgun to the beef.