From ed2155696eb3fb332bc00852e74960f32809f48c Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Mon, 29 Apr 2024 00:43:05 -0400 Subject: [PATCH] Fix double lines with decentholograms Remove debug in lines() method --- .../crazycrates/support/holograms/HologramManager.java | 6 +----- .../support/holograms/types/DecentHologramsSupport.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/paper/src/main/java/com/badbones69/crazycrates/support/holograms/HologramManager.java b/paper/src/main/java/com/badbones69/crazycrates/support/holograms/HologramManager.java index 71d6c71a9..867a3f898 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/support/holograms/HologramManager.java +++ b/paper/src/main/java/com/badbones69/crazycrates/support/holograms/HologramManager.java @@ -47,11 +47,7 @@ protected String color(String message) { protected List lines(CrateHologram crateHologram) { List lines = new ArrayList<>(); - crateHologram.getMessages().forEach(line -> { - this.plugin.getLogger().warning("Line: " + line); - - lines.add(color(line)); - }); + crateHologram.getMessages().forEach(line -> lines.add(color(line))); return lines; } diff --git a/paper/src/main/java/com/badbones69/crazycrates/support/holograms/types/DecentHologramsSupport.java b/paper/src/main/java/com/badbones69/crazycrates/support/holograms/types/DecentHologramsSupport.java index 2eea09a45..6b7da8223 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/support/holograms/types/DecentHologramsSupport.java +++ b/paper/src/main/java/com/badbones69/crazycrates/support/holograms/types/DecentHologramsSupport.java @@ -29,7 +29,7 @@ public void createHologram(Location location, Crate crate) { Hologram hologram = DHAPI.createHologram(name(), location.clone().add(getVector(crate))); - lines(crateHologram).forEach(line -> DHAPI.addHologramLine(hologram, line)); + DHAPI.addHologramPage(hologram, lines(crateHologram)); crateHologram.getMessages().forEach(line -> DHAPI.addHologramLine(hologram, color(line)));