Patchouli

Patchouli

168M Downloads

Rendering ItemStack with non-zero count affects coloring of text rendered after

codetaylor opened this issue ยท 1 comments

commented

Text with the green color for $(thing) rendered after an ItemStack with a non-zero quantity renders brighter than normal.

image

Above, both the left and right hand text are rendered after and are brighter.

image

Above, the RIGHT SIDE TEXT on the left is rendered before and with the proper color.

The template:

{
  "components": [
    {
      "type": "item", "item": "minecraft:gravel#8"
    },
    {
      "type": "text",
      "guard": "#text->exists",
      "text": "#text",
      "y": 45
    }
  ]
}

The entry:

{
  "name": "Test",
  "icon": "minecraft:paper",
  "category": "survive",
  "pages": [
    {
      "type": "test",
      "text": "$(#490)LEFT SIDE TEXT"
    },
    {
      "type": "text",
      "text": "$(#490)RIGHT SIDE TEXT"
    },
    {
      "type": "text",
      "text": "$(#490)RIGHT SIDE TEXT"
    },
    {
      "type": "test",
      "text": "$(#490)LEFT SIDE TEXT"
    }
  ]
}
commented

I forgot to include this for comparison.

image

Removing the stack's quantity returns the text to its expected color.