From c58c858ab7e0ef9d8ce6fb5ea80f79b8549d6eb1 Mon Sep 17 00:00:00 2001 From: tplansky Date: Sun, 12 Nov 2023 10:06:32 +0100 Subject: [PATCH] Fixed inserting lines via DHAPI causing them to merge with the line below --- src/main/java/eu/decentsoftware/holograms/api/DHAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/decentsoftware/holograms/api/DHAPI.java b/src/main/java/eu/decentsoftware/holograms/api/DHAPI.java index 61938cb3..eef091e1 100644 --- a/src/main/java/eu/decentsoftware/holograms/api/DHAPI.java +++ b/src/main/java/eu/decentsoftware/holograms/api/DHAPI.java @@ -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;