TextDisplay#setInterpolationDuration incorrectly updates the line width

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Affects Version/s: 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

            Assignee:
            Unassigned
            Reporter:
            Dark Star
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: