Unbalanced brackets in `/apoth loot_category` output when no item in main hand
James103 opened this issue ยท 1 comments
To reproduce:
- Create a new instance with Minecraft 1.18.2 or 1.19.2 and Forge 40.1.84.
- Install Apotheosis, latest version for the respective Minecraft version. For 1.18.2, the version I used was 5.7.6.
- Install Placebo, latest version for the respective Minecraft version. For 1.18.2, the version I used was 6.6.6.
- Create a new world with cheats enabled.
- Give yourself a valid tool or armor item and another item such as a dirt block.
- Run
/apoth loot_category
while holding the tool or armor item. - Notice the output is correct and has balanced brackets.
- Run
/apoth loot_category
while not holding a valid tool or armor item. - Notice the output is truncated at
Equipment Slot - {
with no closing}
.
Caused by the following function appending a {
unconditionally but only conditionally appending its matching }
: