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()
|
new BukkitRunnable()
|
||||||
{
|
{
|
||||||
|
private Location loc = hologram.getLocation();
|
||||||
|
|
||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
if (!Host.IsLive() || expiry < System.currentTimeMillis())
|
if (!Host.IsLive() || expiry < System.currentTimeMillis())
|
||||||
@ -732,7 +734,7 @@ public abstract class Challenge implements Listener
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
elevateHologram(hologram);
|
elevateHologram(hologram, loc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.runTaskTimer(Host.Manager.getPlugin(), 0L, 1L);
|
}.runTaskTimer(Host.Manager.getPlugin(), 0L, 1L);
|
||||||
@ -748,9 +750,9 @@ public abstract class Challenge implements Listener
|
|||||||
return hologram;
|
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);
|
hologram.setLocation(shifted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user