mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Reset the dead ticks
This commit is contained in:
parent
a49cea54e7
commit
1b914b9c7b
@ -190,6 +190,7 @@ public abstract class Disguise {
|
|||||||
// The delay is because if it sends the destroy entity packets straight away, then it means no death animation
|
// The delay is because if it sends the destroy entity packets straight away, then it means no death animation
|
||||||
// This is probably still a problem for wither and enderdragon deaths.
|
// This is probably still a problem for wither and enderdragon deaths.
|
||||||
if (deadTicks++ > (getType() == DisguiseType.ENDER_DRAGON ? 200 : 20)) {
|
if (deadTicks++ > (getType() == DisguiseType.ENDER_DRAGON ? 200 : 20)) {
|
||||||
|
deadTicks = 0;
|
||||||
if (isRemoveDisguiseOnDeath()) {
|
if (isRemoveDisguiseOnDeath()) {
|
||||||
removeDisguise();
|
removeDisguise();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user