Skip to content

Commit 0c3e83a

Browse files
committed
init TextHologramData in FHHologram
1 parent 1ff5f72 commit 0c3e83a

File tree

2 files changed

+3
-2
lines changed
  • spigot
    • cmi
    • fancyholograms/src/main/java/io/github/projectunified/unihologram/spigot/fancyholograms

2 files changed

+3
-2
lines changed

spigot/cmi/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
<groupId>CMI-API</groupId>
2424
<artifactId>CMI-API</artifactId>
2525
<version>9.6.4.1</version>
26+
<scope>provided</scope>
2627
</dependency>
2728
<dependency>
2829
<groupId>CMILib</groupId>
2930
<artifactId>CMILib</artifactId>
3031
<version>1.4.2.1</version>
32+
<scope>provided</scope>
3133
</dependency>
3234
<dependency>
3335
<groupId>io.github.projectunified</groupId>

spigot/fancyholograms/src/main/java/io/github/projectunified/unihologram/spigot/fancyholograms/FHHologram.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import de.oliver.fancyholograms.api.data.HologramData;
77
import de.oliver.fancyholograms.api.data.TextHologramData;
88
import de.oliver.fancyholograms.api.hologram.Hologram;
9-
import de.oliver.fancyholograms.api.hologram.HologramType;
109
import io.github.projectunified.unihologram.api.HologramLine;
1110
import io.github.projectunified.unihologram.api.display.DisplayBillboard;
1211
import io.github.projectunified.unihologram.api.display.DisplayHologram;
@@ -45,7 +44,7 @@ public class FHHologram implements PlayerVisibility, DisplayHologram<Location> {
4544
* @param location the location of the hologram
4645
*/
4746
public FHHologram(String name, Location location) {
48-
HologramData data = new HologramData(name, HologramType.TEXT, location);
47+
HologramData data = new TextHologramData(name, location);
4948
this.hologram = FancyHologramsPlugin.get().getHologramManager().create(data);
5049
}
5150

0 commit comments

Comments
 (0)