Skip to content

Commit

Permalink
move holograms immediately on /hgs move
Browse files Browse the repository at this point in the history
  • Loading branch information
rlf committed Oct 17, 2015
1 parent d6c2e98 commit 33fddd2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.sainttx.holograms.data.Hologram;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.plugin.Plugin;

import java.util.concurrent.Callable;
Expand All @@ -24,6 +25,14 @@ public void removeView() {
}
}

@Override
public void setLocation(Location location) {
super.setLocation(location);
if (hologram != null) {
hologram.teleport(location);
}
}

private class SyncCallable implements Callable<Void> {
private final Plugin plugin;
private final String[] lines;
Expand Down

0 comments on commit 33fddd2

Please sign in to comment.