221222223224225226227228229230231
return isGlideActive; } public boolean isSoundDetectorUpgradeEquipped(EntityClientPlayerMP player) { ItemStack helmet = player.getEquipmentInSlot(4); SoundDetectorUpgrade upgrade = SoundDetectorUpgrade.loadFromItem(helmet); if(upgrade == null) { return false; } return true; }