Remove bad supports() in key impl#4184
Remove bad supports() in key impl#4184MrHell228 wants to merge 2 commits intoSpongePowered:api-12from
Conversation
080e39c to
873584c
Compare
|
Did you test whatever these actually work when offered to any item type? For example, books still need to be |
|
I don't really see where it requires book to be |
|
I'm just worried on what the developer expectation is. Vanilla will not open just any item that has the component attached to it. If a mod uses these components to implement their own custom logic, I'm fine with merging this then. |
|
I don't have anything to say about developer expectation tbh. But I do know that mods can use these components. Not sure specificially about book-related ones, but I had mod that used enchanments component and believe there can exist mod that at least makes book component work on any item (not a hard thing to implement, written book can be implemented even by plugin) |
|
Merged by 59f1841 |
These
supportsmake no sense because these keys reflect components that can be applied to any stack.For firework data the only remaining limitation is that FIREWORK_STAR assumed to be the only item that can have
FIREWORK_EXPLOSIONcomponent. For other stacksKeys.FIREWORK_EFFECTSsets regular firework component (and will do the same whenever firework star component gets it's own key).