Hopefully fixes malon's issue
This commit is contained in:
		| @@ -910,8 +910,7 @@ public abstract class Disguise { | |||||||
|  |  | ||||||
|                 try { |                 try { | ||||||
|                     for (Player player : Bukkit.getOnlinePlayers()) { |                     for (Player player : Bukkit.getOnlinePlayers()) { | ||||||
|                         if (!((TargetedDisguise) this).canSee(player) || |                         if (!((TargetedDisguise) this).canSee(player)) | ||||||
|                                 (!isSelfDisguiseVisible() && getEntity() == player)) |  | ||||||
|                             continue; |                             continue; | ||||||
|  |  | ||||||
|                         ProtocolLibrary.getProtocolManager().sendServerPacket(player, deleteTab); |                         ProtocolLibrary.getProtocolManager().sendServerPacket(player, deleteTab); | ||||||
| @@ -964,8 +963,7 @@ public abstract class Disguise { | |||||||
|  |  | ||||||
|             try { |             try { | ||||||
|                 for (Player player : Bukkit.getOnlinePlayers()) { |                 for (Player player : Bukkit.getOnlinePlayers()) { | ||||||
|                     if (!((TargetedDisguise) this).canSee(player) || |                     if (!((TargetedDisguise) this).canSee(player)) | ||||||
|                             (!isSelfDisguiseVisible() && getEntity() == player)) |  | ||||||
|                         continue; |                         continue; | ||||||
|  |  | ||||||
|                     ProtocolLibrary.getProtocolManager().sendServerPacket(player, addTab); |                     ProtocolLibrary.getProtocolManager().sendServerPacket(player, addTab); | ||||||
| @@ -1130,8 +1128,7 @@ public abstract class Disguise { | |||||||
|  |  | ||||||
|                 try { |                 try { | ||||||
|                     for (Player player : Bukkit.getOnlinePlayers()) { |                     for (Player player : Bukkit.getOnlinePlayers()) { | ||||||
|                         if (!((TargetedDisguise) this).canSee(player) || |                         if (!((TargetedDisguise) this).canSee(player)) | ||||||
|                                 (!isSelfDisguiseVisible() && getEntity() == player)) |  | ||||||
|                             continue; |                             continue; | ||||||
|  |  | ||||||
|                         ProtocolLibrary.getProtocolManager().sendServerPacket(player, addTab); |                         ProtocolLibrary.getProtocolManager().sendServerPacket(player, addTab); | ||||||
| @@ -1171,8 +1168,7 @@ public abstract class Disguise { | |||||||
|  |  | ||||||
|             try { |             try { | ||||||
|                 for (Player player : Bukkit.getOnlinePlayers()) { |                 for (Player player : Bukkit.getOnlinePlayers()) { | ||||||
|                     if (!((TargetedDisguise) this).canSee(player) || |                     if (!((TargetedDisguise) this).canSee(player)) | ||||||
|                             (!isSelfDisguiseVisible() && getEntity() == player)) |  | ||||||
|                         continue; |                         continue; | ||||||
|  |  | ||||||
|                     ProtocolLibrary.getProtocolManager().sendServerPacket(player, addTab); |                     ProtocolLibrary.getProtocolManager().sendServerPacket(player, addTab); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user