JEI adding invalid space between item id and nbt in /give
ChloeDawn opened this issue ยท 3 comments
JEI version: 1.16.4-7.6.1.65
When using give mode in JEI, it is adding an invalid space between item id and nbt, resulting in the following command
/give HeckinChloe minecraft:lingering_potion {Potion:"minecraft:long_water_breathing"} 1
producing the following message:
Expected integer
...ng_potion {Potion:"minecraft:long_water_breathing"} 1<--[HERE]
Typing the following actually gives the item:
- /give HeckinChloe minecraft:lingering_potion {Potion:"minecraft:long_water_breathing"} 1
+ /give HeckinChloe minecraft:lingering_potion{Potion:"minecraft:long_water_breathing"} 1
The problematic implementation can be found here:
A solution could be to join id and nbt before passing it to this method
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Thanks for the report!
Do you know which version this syntax started in? I may need to backport a fix to some older versions.
I believe it was introduced in the switch to Brigadier? https://minecraft.gamepedia.com/Argument_types#item_stack