[SPIGOT-7398] TextDisplay#setInterpolationDuration incorrectly updates the line width Created: 17/Jun/23  Updated: 25/Dec/24  Resolved: 08/Jul/23

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Dark Star Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.20, TextDisplay, bug, spigot

Issue Links:
Duplicate
is duplicated by SPIGOT-7423 Interpolation not working with text d... Resolved
Version: 3811-Spigot-c62f4bd-85b89c3 (MC: 1.20.1)
Guidelines Read: Yes

 Description   

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

Generated at Fri Apr 11 16:22:06 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.