Fix hologram elevation speed
This commit is contained in:
parent
00c3584c0b
commit
607b92984e
@ -723,6 +723,8 @@ public abstract class Challenge implements Listener
|
||||
|
||||
new BukkitRunnable()
|
||||
{
|
||||
private Location loc = hologram.getLocation();
|
||||
|
||||
public void run()
|
||||
{
|
||||
if (!Host.IsLive() || expiry < System.currentTimeMillis())
|
||||
@ -732,7 +734,7 @@ public abstract class Challenge implements Listener
|
||||
}
|
||||
else
|
||||
{
|
||||
elevateHologram(hologram);
|
||||
elevateHologram(hologram, loc);
|
||||
}
|
||||
}
|
||||
}.runTaskTimer(Host.Manager.getPlugin(), 0L, 1L);
|
||||
@ -748,9 +750,9 @@ public abstract class Challenge implements Listener
|
||||
return hologram;
|
||||
}
|
||||
|
||||
private void elevateHologram(Hologram hologram)
|
||||
private void elevateHologram(Hologram hologram, Location loc)
|
||||
{
|
||||
Location shifted = hologram.getLocation().add(0, 0.1, 0);
|
||||
Location shifted = loc.add(0, 0.1, 0);
|
||||
hologram.setLocation(shifted);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user