SPIGOT-7398: TextDisplay#setInterpolationDuration incorrectly updates the line width
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -46,7 +46,7 @@ public class CraftTextDisplay extends CraftDisplay implements TextDisplay {
|
||||
|
||||
@Override
|
||||
public void setLineWidth(int width) {
|
||||
getHandle().setLineWidth(width);
|
||||
getHandle().getEntityData().set(Display.TextDisplay.DATA_LINE_WIDTH_ID, width);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -59,9 +59,9 @@ public class CraftTextDisplay extends CraftDisplay implements TextDisplay {
|
||||
@Override
|
||||
public void setBackgroundColor(Color color) {
|
||||
if (color == null) {
|
||||
getHandle().setBackgroundColor(-1);
|
||||
getHandle().getEntityData().set(Display.TextDisplay.DATA_BACKGROUND_COLOR_ID, -1);
|
||||
} else {
|
||||
getHandle().setBackgroundColor(color.asARGB());
|
||||
getHandle().getEntityData().set(Display.TextDisplay.DATA_BACKGROUND_COLOR_ID, color.asARGB());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user