Skip to content

Commit

Permalink
Fix double lines with decentholograms
Browse files Browse the repository at this point in the history
Remove debug in lines() method
  • Loading branch information
ryderbelserion committed Apr 29, 2024
1 parent b290d54 commit ed21556
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ protected String color(String message) {
protected List<String> lines(CrateHologram crateHologram) {
List<String> 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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down

0 comments on commit ed21556

Please sign in to comment.