mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-14 15:26:54 +01:00
Help fix error
This commit is contained in:
parent
6d559b1887
commit
0a3bda1a8e
@ -140,15 +140,19 @@ public class PlayerSkinHandler implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
ArrayList<PlayerDisguise> removed = new ArrayList<>();
|
||||
|
||||
skins.removeIf(skin -> {
|
||||
if (!skin.canRemove()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
doPacketRemoval(player, skin.getDisguise().get());
|
||||
removed.add(skin.getDisguise().get());
|
||||
return true;
|
||||
});
|
||||
|
||||
removed.forEach(disguise -> doPacketRemoval(player, disguise));
|
||||
|
||||
if (!skins.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user