mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-19 15:09:19 +00:00
perf: remove unnecessary null-check
This commit is contained in:
@@ -700,7 +700,6 @@ public class PlayerGameListener implements Listener {
|
|||||||
for (final EquipmentSlot slot : EquipmentSlot.values()) {
|
for (final EquipmentSlot slot : EquipmentSlot.values()) {
|
||||||
final Set<Material> armorItems = ARMOR_ITEMS.get(slot);
|
final Set<Material> armorItems = ARMOR_ITEMS.get(slot);
|
||||||
if (armorItems == null) continue;
|
if (armorItems == null) continue;
|
||||||
if (material == null) continue;
|
|
||||||
if (armorItems.contains(material)) return slot;
|
if (armorItems.contains(material)) return slot;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user