Add another check
This commit is contained in:
parent
60326253a2
commit
5f69b11ab4
@ -557,7 +557,7 @@ public class DisguiseUtilities {
|
|||||||
*/
|
*/
|
||||||
public static void sendSelfDisguise(final Player player, final Disguise disguise) {
|
public static void sendSelfDisguise(final Player player, final Disguise disguise) {
|
||||||
try {
|
try {
|
||||||
if (!player.isValid() || !player.isOnline()) {
|
if (!player.isValid() || !player.isOnline() || !disguise.isSelfDisguiseVisible()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Object world = ReflectionManager.getWorld(player.getWorld());
|
Object world = ReflectionManager.getWorld(player.getWorld());
|
||||||
|
Loading…
Reference in New Issue
Block a user