mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 09:25:27 +00:00
Use isPlayerDisguise
This commit is contained in:
parent
a3b67b9a4f
commit
465257f11a
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ public class DisguiseListener implements Listener {
|
||||||
if (newLoc != null) {
|
if (newLoc != null) {
|
||||||
for (HashSet<TargetedDisguise> list : DisguiseUtilities.getDisguises().values()) {
|
for (HashSet<TargetedDisguise> list : DisguiseUtilities.getDisguises().values()) {
|
||||||
for (TargetedDisguise disguise : list) {
|
for (TargetedDisguise disguise : list) {
|
||||||
if (disguise.getType() == DisguiseType.PLAYER && disguise.canSee(player)
|
if (disguise.isPlayerDisguise() && disguise.canSee(player)
|
||||||
&& ((PlayerDisguise) disguise).getWatcher().isSleeping()
|
&& ((PlayerDisguise) disguise).getWatcher().isSleeping()
|
||||||
&& DisguiseUtilities.getPerverts(disguise).contains(player)) {
|
&& DisguiseUtilities.getPerverts(disguise).contains(player)) {
|
||||||
PacketContainer[] packets = DisguiseUtilities.getBedPackets(player,
|
PacketContainer[] packets = DisguiseUtilities.getBedPackets(player,
|
||||||
|
|
Loading…
Reference in a new issue