mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Add another check
This commit is contained in:
parent
60326253a2
commit
5f69b11ab4
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue