Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-268197

Text Filter on Written Book titles doesn't hide if fully hidden

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4
    • None
    • Plausible
    • Text
    • Normal
    • Platform

      Related to MC-264829

      When the vanilla text filter is set up, and a non-filtered player signs a book and quill
      in such a way that the whole title is filtered,
      client on which the text filter should apply can see the original title.

      this is the same issue as MC-264829, where any fully filtered strings are set to empty in the nbt, and while displaying the client skips empty titles, falling back onto the unfiltered version, rather than the items name.

      Reproduction

      1. Be on a server with this vanilla text filtering set up.
        As far as I am aware, Realms should work (not sure about it fully blocking messages tho, for actual reproducibility see below)
        To run your own server with text filtering, I provide a demo server. for setup, copy the config found here into text-filtering-config in server.properties
        {}NOTE:{} this text filter server logs all received events to a discord web-hook, see here.
        in the config, maybe change hashes to drop to 0, so even partially filtered text is fully dropped
      2. on a client WITHOUT text filtering enabled:
        sign a book, when asked for the title enter anything that would get a chat message fully dropped.
        if using the demo server above, enter "123" which guarantees this
      3. give the book to the client with text filtering enabled
      4. on the client WITH text filtering enabled:
      5. observe that the book still has its original title:
        do /data get entity @s SelectedItem and observe that filtered_title is present, but empty.
      6. create a new book in the same way as before
      7. observe that the book items new name visible is "Written Book"
        (and nbt only has the title tag present (empty))
        Correct, Expected behaviour

            Unassigned Unassigned
            The456gamer The456gamer
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: