From 716be3945b98fa1a85527a69910c0d40f12fbcf6 Mon Sep 17 00:00:00 2001 From: tplansky Date: Sun, 12 Nov 2023 10:05:57 +0100 Subject: [PATCH] Minor cleanup --- .../holograms/api/holograms/HologramLine.java | 14 +++++++------- .../holograms/api/holograms/HologramPage.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramLine.java b/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramLine.java index 5c558644..d579176a 100644 --- a/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramLine.java +++ b/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramLine.java @@ -119,16 +119,16 @@ public static HologramLine fromMap(@NonNull Map map, @Nullable H * Fields */ - private final @Nullable HologramPage parent; - private final @NonNull Map playerTextMap = new ConcurrentHashMap<>(); - private final @NonNull Map lastTextMap = new ConcurrentHashMap<>(); + private final HologramPage parent; + private final Map playerTextMap = new ConcurrentHashMap<>(); + private final Map lastTextMap = new ConcurrentHashMap<>(); private HologramLineType type; private int[] entityIds = new int[2]; - private final @NonNull AtomicDouble offsetX = new AtomicDouble(0d); - private final @NonNull AtomicDouble offsetY = new AtomicDouble(0d); - private final @NonNull AtomicDouble offsetZ = new AtomicDouble(0d); + private final AtomicDouble offsetX = new AtomicDouble(0d); + private final AtomicDouble offsetY = new AtomicDouble(0d); + private final AtomicDouble offsetZ = new AtomicDouble(0d); private double height; - private @NonNull String content; + private String content; private String text; private HologramItem item; private HologramEntity entity; diff --git a/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramPage.java b/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramPage.java index 7b1918fa..30c49b81 100644 --- a/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramPage.java +++ b/src/main/java/eu/decentsoftware/holograms/api/holograms/HologramPage.java @@ -152,7 +152,7 @@ public void realignLines() { */ public boolean addLine(@NonNull HologramLine line) { lines.add(line); - parent.getViewerPlayers(index).forEach(line::show); + parent.getViewerPlayers(this.index).forEach(line::show); realignLines(); return true; }