Add another check

This commit is contained in:
libraryaddict 2014-04-26 15:34:48 +12:00
parent 60326253a2
commit 5f69b11ab4

View File

@ -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());