[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: |
|
||||||||
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 |