Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7398

TextDisplay#setInterpolationDuration incorrectly updates the line width

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • 3811-Spigot-c62f4bd-85b89c3 (MC: 1.20.1)
    • Yes

      When calling setInterpolationDuration on a text display entity, the input parameter to this method also seems to update the line width of that entity.

      Code to test:

      World world = Bukkit.getWorlds().get(0);
      TextDisplay display = world.spawn(new Vector(0, 0, 0).toLocation(world), TextDisplay.class);
      display.setLineWidth(200);
      Bukkit.getServer().broadcastMessage("" + display.getLineWidth());
      display.setInterpolationDuration(2);
      Bukkit.getServer().broadcastMessage("" + display.getLineWidth());
      display.remove();

      The output in the chat should be as follows:

      200
      2

            Unassigned Unassigned
            DarkStar634 Dark Star
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: