mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-08-22 22:53:01 +02:00
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) {
|
||||
try {
|
||||
if (!player.isValid() || !player.isOnline()) {
|
||||
if (!player.isValid() || !player.isOnline() || !disguise.isSelfDisguiseVisible()) {
|
||||
return;
|
||||
}
|
||||
Object world = ReflectionManager.getWorld(player.getWorld());
|
||||
|
|
Loading…
Reference in New Issue
Block a user