Action bar every 15 ticks, only if current disguise is main disguise
This commit is contained in:
parent
4af9da10c5
commit
7f2de5194f
@ -175,7 +175,7 @@ public abstract class Disguise {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
if (DisguiseConfig.isNotifyPlayerDisguised() && getEntity() instanceof Player &&
|
if (DisguiseConfig.isNotifyPlayerDisguised() && getEntity() instanceof Player &&
|
||||||
++actionBarTicks % 20 == 0) {
|
++actionBarTicks % 15 == 0 && DisguiseAPI.getDisguise(getEntity()) == Disguise.this) {
|
||||||
actionBarTicks = 0;
|
actionBarTicks = 0;
|
||||||
|
|
||||||
((Player) getEntity()).spigot().sendMessage(ChatMessageType.ACTION_BAR,
|
((Player) getEntity()).spigot().sendMessage(ChatMessageType.ACTION_BAR,
|
||||||
|
Loading…
Reference in New Issue
Block a user