Skip to content

Commit bffc4b7

Browse files
committed
add hologram in feature
1 parent bfa46b3 commit bffc4b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/me/hsgamer/gamesinthebox/game/feature/HologramFeature.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public static void reInit(@NotNull Hologram<Location> hologram) {
9898
*/
9999
@NotNull
100100
public Hologram<Location> createHologram(@NotNull Location location) {
101-
return hologramProvider.createHologram(baseName + "-" + UUID.randomUUID(), location);
101+
Hologram<Location> hologram = hologramProvider.createHologram(baseName + "-" + UUID.randomUUID(), location);
102+
holograms.add(hologram);
103+
return hologram;
102104
}
103105

104106
@Override

0 commit comments

Comments
 (0)