From 7f2de5194f43ab9f3beff4d84df143ff6e36f740 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 4 Feb 2020 16:07:47 +1300 Subject: [PATCH] Action bar every 15 ticks, only if current disguise is main disguise --- .../java/me/libraryaddict/disguise/disguisetypes/Disguise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index 6d260ce6..cc8162a3 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -175,7 +175,7 @@ public abstract class Disguise { @Override public void run() { if (DisguiseConfig.isNotifyPlayerDisguised() && getEntity() instanceof Player && - ++actionBarTicks % 20 == 0) { + ++actionBarTicks % 15 == 0 && DisguiseAPI.getDisguise(getEntity()) == Disguise.this) { actionBarTicks = 0; ((Player) getEntity()).spigot().sendMessage(ChatMessageType.ACTION_BAR,