Skip to content

Commit

Permalink
Fixed inserting lines via DHAPI causing them to merge with the line b…
Browse files Browse the repository at this point in the history
…elow
  • Loading branch information
d0by1 committed Nov 12, 2023
1 parent 716be39 commit c58c858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/eu/decentsoftware/holograms/api/DHAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public static HologramLine insertHologramLine(HologramPage page, int index, Stri
if (oldLine == null) {
throw new IllegalArgumentException("Given line index is out of bounds for the hologram page.");
}
HologramLine line = new HologramLine(page, oldLine.getLocation(), content);
HologramLine line = new HologramLine(page, oldLine.getLocation().clone(), content);
page.insertLine(index, line);
page.getParent().save();
return line;
Expand Down

0 comments on commit c58c858

Please sign in to comment.