You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manually adding card.remove(AEComponents.EXPORTED_*) calls (for EXPORTED_P2P_TYPE, EXPORTED_P2P_FREQUENCY, and EXPORTED_SETTINGS_SOURCE in my example) makes things work as expected.
The intention of the code seems to be that all those potential AEComponents.EXPORTED_* are stored inside the BuiltInRegistries.DATA_COMPONENT_TYPE.getTagOrEmpty(ConventionTags.EXPORTED_SETTINGS) and removed from the memory card by iterating over that container. Debug prints showed that the for-loop is never called, leading me to believe that the registry is never filled in the first place.
Yeah I had the idea that since tags now can be defined on anything, we could also define a tag on data component types!
And then use that to just clear everything in that tag, when you clear the memory card.
I probably just forgot to define the tag in the datagen.
Describe the bug
Right-clicking a memory card used for P2P Tunnel setup does not properly clear the memory card.
How to reproduce the bug
Expected behavior
I'd expect the NBT after a clear to match that of a totally blank card.
Additional details
1.20.1 was still ok, git blame makes me think the bug was introduced in 1.20.5
Which minecraft version are you using?
1.21
On which mod loaders does it happen?
NeoForge
Crash log
Self compiled 1.21
The text was updated successfully, but these errors were encountered: