From 06f2f4e4b2f600815453f15c66ef10163c2f21f4 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 23 Jan 2014 15:09:38 +1300 Subject: [PATCH] Always send the velocity for fireworks so they don't appear so glitched --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index 10cced11..126d9132 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -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);