Always send the velocity for fireworks so they don't appear so glitched
This commit is contained in:
parent
6bec4c20c4
commit
06f2f4e4b2
@ -117,6 +117,7 @@ public abstract class Disguise {
|
||||
case SPLASH_POTION:
|
||||
case THROWN_EXP_BOTTLE:
|
||||
case WITHER_SKULL:
|
||||
case FIREWORK:
|
||||
alwaysSendVelocity = true;
|
||||
break;
|
||||
default:
|
||||
@ -186,7 +187,8 @@ public abstract class Disguise {
|
||||
DisguiseAPI.undisguiseToAll(getEntity());
|
||||
} else {
|
||||
// If the disguise type is tnt, we need to resend the entity packet else it will turn invisible
|
||||
if (getType() == DisguiseType.PRIMED_TNT || getType() == DisguiseType.FIREWORK) {refreshDisguise++;
|
||||
if (getType() == DisguiseType.PRIMED_TNT || getType() == DisguiseType.FIREWORK) {
|
||||
refreshDisguise++;
|
||||
if (refreshDisguise % 40 == 0) {
|
||||
refreshDisguise = 0;
|
||||
DisguiseUtilities.refreshTrackers(disguise);
|
||||
|
Loading…
Reference in New Issue
Block a user