Get cache not perverts

This commit is contained in:
libraryaddict 2020-11-04 18:35:57 +13:00
parent e81b42b0ff
commit e25279f8cb

View File

@ -217,7 +217,9 @@ public class PlayerSkinHandler implements Listener {
PlayerDisguise disguise = (PlayerDisguise) event.getDisguise(); PlayerDisguise disguise = (PlayerDisguise) event.getDisguise();
for (Player player : DisguiseUtilities.getPerverts(disguise)) { ArrayList<Player> players = new ArrayList<>(getCache().asMap().keySet());
for (Player player : players) {
List<PlayerSkin> skins = getCache().getIfPresent(player); List<PlayerSkin> skins = getCache().getIfPresent(player);
if (skins == null) { if (skins == null) {