Evoker fangs and fireworks should now start off nicer
This commit is contained in:
parent
b93972c1c2
commit
4611f8880d
@ -422,7 +422,7 @@ public abstract class Disguise {
|
|||||||
private int blockX, blockY, blockZ, facing;
|
private int blockX, blockY, blockZ, facing;
|
||||||
private int deadTicks = 0;
|
private int deadTicks = 0;
|
||||||
private int actionBarTicks = -1;
|
private int actionBarTicks = -1;
|
||||||
private long lastRefreshed;
|
private long lastRefreshed = System.currentTimeMillis();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
@ -469,8 +469,8 @@ public abstract class Disguise {
|
|||||||
|
|
||||||
// If the disguise type is tnt, we need to resend the entity packet else it will turn invisible
|
// If the disguise type is tnt, we need to resend the entity packet else it will turn invisible
|
||||||
if (getType() == DisguiseType.FIREWORK || getType() == DisguiseType.EVOKER_FANGS) {
|
if (getType() == DisguiseType.FIREWORK || getType() == DisguiseType.EVOKER_FANGS) {
|
||||||
if (lastRefreshed < System.currentTimeMillis()) {
|
if (lastRefreshed + ((getType() == DisguiseType.FIREWORK ? 40 : 23) * 50) < System.currentTimeMillis()) {
|
||||||
lastRefreshed = System.currentTimeMillis() + ((getType() == DisguiseType.FIREWORK ? 40 : 23) * 50);
|
lastRefreshed = System.currentTimeMillis();
|
||||||
|
|
||||||
DisguiseUtilities.refreshTrackers(disguise);
|
DisguiseUtilities.refreshTrackers(disguise);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user