Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
d0by1 committed Nov 12, 2023
1 parent e4c979c commit 716be39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ public static HologramLine fromMap(@NonNull Map<String, Object> map, @Nullable H
* Fields
*/

private final @Nullable HologramPage parent;
private final @NonNull Map<UUID, String> playerTextMap = new ConcurrentHashMap<>();
private final @NonNull Map<UUID, String> lastTextMap = new ConcurrentHashMap<>();
private final HologramPage parent;
private final Map<UUID, String> playerTextMap = new ConcurrentHashMap<>();
private final Map<UUID, String> 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 716be39

Please sign in to comment.