Skip to content

Commit

Permalink
fix: copy holo method
Browse files Browse the repository at this point in the history
  • Loading branch information
max1mde committed Dec 27, 2024
1 parent 2a11d39 commit 6692edf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project.version = "1.6.0.2-ALPHA"
project.version = "1.6.0"

plugins {
kotlin("jvm") version "2.0.21"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ public boolean updateHologramIfExists(String id, Consumer<Hologram<?>> updateAct
return false;
}

public Hologram<?> copyHologram(Hologram<?> source, String id) {
public <H extends Hologram<H>> Hologram<H> copyHologram(H source, String id) {
return this.spawn(source.copy(id), source.getLocation());
}

public Hologram<?> copyHologram(Hologram<?> source) {
public <H extends Hologram<H>> Hologram<H> copyHologram(H source) {
return this.spawn(source.copy(), source.getLocation());
}
}

0 comments on commit 6692edf

Please sign in to comment.